[squeak-dev] The Trunk: Morphic-mt.1877.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Feb 8 13:20:27 UTC 2022


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1877.mcz

==================== Summary ====================

Name: Morphic-mt.1877
Author: mt
Time: 8 February 2022, 2:20:17.763701 pm
UUID: 861a8e14-f56d-d54a-8c97-011700fef55b
Ancestors: Morphic-mt.1876

Fixes that issue where a red click on a splitter made that splitter jump a little bit. It was kind of a rounding issue in #balanceOffsets. This fix just avoids the call to #balanceOffsets via the #isStepping test. Should not interfere with the smart splitters, which turn on stepping when doing their magic. :-)

=============== Diff against Morphic-mt.1876 ===============

Item was changed:
  ----- Method: ProportionalSplitterMorph>>mouseUp: (in category 'events') -----
  mouseUp: anEvent 
  	(self bounds containsPoint: anEvent cursorPoint) ifFalse: [ anEvent hand showTemporaryCursor: nil ].
  	self class fastSplitterResize ifTrue: [ self updateFromEvent: anEvent ].
  	traceMorph ifNotNil:
  		[ traceMorph delete.
  		traceMorph := nil ].
  
  	"balanceOffsets currently disrupts Smart Splitter behavior."
+ 	self isStepping ifTrue: [
+ 		(ProportionalSplitterMorph smartVerticalSplitters
+ 			or: [ ProportionalSplitterMorph smartHorizontalSplitters ])
+ 				ifFalse: [ self balanceOffsets ] ].!
- 	(ProportionalSplitterMorph smartVerticalSplitters or: [ ProportionalSplitterMorph smartHorizontalSplitters ]) ifFalse: [ self balanceOffsets ]!

Item was changed:
  ----- Method: ProportionalSplitterMorph>>stopStepping (in category 'smart splitters - stepping') -----
  stopStepping
+ 
+ 	self isStepping ifFalse: [^ self].
  	super stopStepping.
  	(self class smartVerticalSplitters or: [ self class smartHorizontalSplitters ]) ifFalse: [ self balanceOffsets ]!



More information about the Squeak-dev mailing list