aurelia-dragula
aurelia-dragula copied to clipboard
Drop event sometimes thrown too early
Using your example project: https://github.com/michaelmalonenz/aurelia-dragula-example
- Add a breakpoint, console log, or anything else to notify you (that it has been triggered) on line 32 in
welcome.js
(so just inside thedrop
function) - Start it up and submit the name: "test"
- For reference move first letter to any position and note that when dropped, the breakpoint should stop execution. The letter should be changed to the position you dropped it.
- Now move the last (right) letter and change its position in the list to any other position. Note that when the breakpoint stops execution, the letter should have returned to its previous position (completely right). When you continue execution the letter should move to its new position.
This is the "flicker" I was referring to in the previous issue. I can't fix this for the last letter, I don't think. Either that, or fixing the test for _isInitialPosition
will solve this issue.
hm, so as far as you know there is no way to fix this?