Skip to content
Discussion options

You must be logged in to vote
  • You should listen to the stencil event element:dragend instead of window pointerup.
  • You can not check if the stencil element contains dragged node. It is never appended to the stencil DOM element. You need to check its client position.

The stencil checks the drop area already:

  • it checks if the element is inside the paper or paper scroller
  • it makes sure it is not above the stencil

Since you are not rendering the stencil (and use a custom one instead), this check fails. I think it would be nice to add a new option to the stencil that enables you to provide a custom stencil node.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kumilingus
Comment options

@VictorPulzz
Comment options

@VictorPulzz
Comment options

Answer selected by VictorPulzz
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