Skip to content

Conversation

@pionl
Copy link

@pionl pionl commented Aug 15, 2014

  • updated SPUserResizableView to support resize with transforms like scale and rotation (when scale is used the distance is calculated with current scale)
  • added ability to disable panning the view
  • added to disable resizing
  • added to disable resizing on more than 1 touch
  • arc
  • moved the SPUserResizableView files do subfolder

- updated SPUserResizableView to support resize with transforms like scale and rotation (when scale is used the distance is calculated with current scale)
- added ability to disable panning the view
- added to disable resizing
- added to disable resizing on more than 1 touch
- arc
@pionl pionl changed the title - updated demo to support transforms Updated demo and SPUserResizableView to support transforms Aug 15, 2014
Martin Kluska and others added 15 commits October 24, 2014 11:12
- improved resize when pan is enabled
- added change detection to ensure that didEnd will be fired even if its disabled
- added change detection to ensure that didEnd will be fired even if its disabled, \d updated readme
When you resize the element with upper/left anchors and reach either min height
or min width the element sort of "jumps" up/left.

It happens because element's size is increased exceptionally setting it to minWidth/minHeight
while calculated newWidth/newHeight was smaller. The bad thing is that newX/newY are not
recalculated in this case which leads to jumping effect.

The fix is decreasing newX/newY with same amount as newWidth/newHeight are increased with thus
leaving the element at the same place.
…inSize

Fixed jumping effect reaching min size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants