Skip to content

Commit

Permalink
minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedc committed Jul 30, 2020
1 parent 96a684b commit c368f88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/HandleMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,13 @@ class HandleMorph extends Widget
nonFloatDragging: (nonFloatDragPositionWithinWdgtAtStart, pos, deltaDragFromPreviousCall) ->
newPos = pos.subtract nonFloatDragPositionWithinWdgtAtStart
switch @type
# 1. all these changes applied to the target are all deferred
# 2. the position of this handle will be changed when the
# parentHasReLayouted method of this handle will be called
# ...i.e. *after* the parent has re-layouted (in the deferred layout phase).
when "resizeBothDimensionsHandle"
newExt = newPos.add(@extent().add(@inset)).subtract @target.position()
@target.setExtent newExt, @
# the position of this handle will be changed when the
# parentHasReLayouted method of this handle will be called
# ...after the parent has re-layouted (in the deferred layout phase).
when "moveHandle"
@target.fullMoveTo (newPos.subtract @inset), @
when "resizeHorizontalHandle"
Expand Down

0 comments on commit c368f88

Please sign in to comment.