Skip to content

Conversation

@ThePlastic
Copy link
Contributor

@ThePlastic ThePlastic commented Feb 1, 2017

the simplest possible implementation to notify that an item has been resized or moved, a debounce function should be used to avoid making too many operations during interactions

@gmsa
Copy link
Contributor

gmsa commented Feb 2, 2017

This will fire the resized and moved events every time it is moved or resized, even if it ends up in the same place or with the same size.
Is that the intended behaviour?

@ThePlastic
Copy link
Contributor Author

ThePlastic commented Feb 2, 2017

In my use case it is, cause I need to know which item the user is interacting with. I just read the other user's request and copied the part of code that I use in my project. If some other implementation is needed I'll be glad to provide. Be patient ;) it's my first PR ever (and I just started with Vue) Any suggestion will be appreciated

@gmsa
Copy link
Contributor

gmsa commented Feb 6, 2017

Hi, can you update your code with the current master? Please also change your events:

  • 'moved' to 'move'
  • 'resized' to 'resize'

This way we can create events later for when an item is really moved (after drop) or resized.

Thanks

@gmsa gmsa merged commit 3edc562 into jbaysolutions:master Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants