Skip to content

How to catch element position changes only after pointerup #2014

Answered by kumilingus
Biowavix asked this question in Q&A
Discussion options

You must be logged in to vote

If the pointermove event was fired, the element was moved on the pointerup event.

paper.on({
   'element:pointermove': (_, evt) => evt.data.moved = true,
   'element:pointerup': (_, evt) => console.log(!!evt.data.moved) 
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Biowavix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants