Snap.js icon indicating copy to clipboard operation
Snap.js copied to clipboard

Fix intent check bypassed due to init setting

Open inDream opened this issue 10 years ago • 2 comments

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

inDream avatar Jun 28 '14 10:06 inDream

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)

ronmichael avatar Oct 26 '14 22:10 ronmichael

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

inDream avatar Oct 27 '14 03:10 inDream