nz-flag-graph
nz-flag-graph copied to clipboard
Dragging flags on mobile causes scrolling
Steps to reproduce:
- Use a mobile browser
- Try to drag/drop flag icon
- Screen will scroll due to finger moving on screen
Which browser and OS?
It works (mostly) fine in Firefox on Android for me, but in Chrome it seems to scroll downwards if I drag a flag upwards and sometimes glitches out the scrolling on the page completely (continues to scroll even after the flag has been released). Is that the same issue you're getting?
I suspect it's a bug in the library I'm using, but I'll take a look if I get a chance.
Android, Chrome (48). Sorry, should have included that in the issue description.
Yes, it seems to be the same bug as what you've described.
An event listener on the scroll event that keeps the y position the same (probably preventing default as well) would be a quick and dirty fix. I'm not at all familiar with the library, so can't help you there.