How to prevent parent scrolling during touch tap drag and drop event on html canvas?
98 views
Skip to first unread message
Kelly St. John
unread,
Mar 3, 2016, 8:20:46 PM3/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Polymer
I am currently using easel.js (create.js) on my polymer 1.0+ site to handle rendering of shapes on the html canvas, and I'm handling mouse events using "pressmove", "mousedown" and "pressup" on those shapes within the canvas. Everything is working well with the mouse. However, drag and dropping of those shapes on mobile devices doesn't work. A tap and drag with the finger on a touch enable device instead scrolls the page itself (which does need to be scrollable). Is there a way to prevent polymer scrolling of the page when the user taps on the canvas or one of the shapes within the canvas itself?