jakiestfu / Snap.js

A Library for creating beautiful mobile shelfs in Javascript (Facebook and Path style side menus)
http://jakiestfu.github.io/Snap.js/
5.99k stars 663 forks source link

Fix intent check bypassed due to init setting #215

Open inDream opened 10 years ago

inDream commented 10 years ago

Currently hasIntent part of dragging would never entered as hasIntent is undefined.

ronmichael commented 10 years ago

I ran into this too. Although I went with a different solution: around like 511 I replaced

       if (cache.hasIntent === false || cache.hasIntent === null) 

with

       if (!cache.intentChecked)
inDream commented 10 years ago

Both solution work, but I think it's better to set an init value for reference.