Skip to content

Made event handlers non-passive

Latest
Compare
Choose a tag to compare
@Bernardo-Castilho Bernardo-Castilho released this 11 May 05:16
· 103 commits to master since this release

The latest versions of Chrome treat touchstart/touchmove event handlers as passive by default, which makes it illegal for the handlers to call the preventDefault method on the event arguments. Calling preventDefault in this case reports an error to the console.

This release of DragDropTouch adds event handlers with a {passive:false} option to prevent those errors.