Snap.js
Snap.js copied to clipboard
Fix intent check bypassed due to init setting
Currently hasIntent
part of dragging
would never entered as hasIntent is undefined
.
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)
Both solution work, but I think it's better to set an init value for reference.