svelte-dnd-action
svelte-dnd-action copied to clipboard
Keyboard events only scroll selected element into view on scrolling up, not scrolling down
Example: the Board demo https://svelte.dev/repl/e2ef044af75c4b16b424b8219fb31fd9?version=3.59.2
Select the first item in the first container (item11), scroll down with the keyboard - you can scroll off the end of the container indefinitely. As soon as you press the up arrow to scroll back up, it snaps to focus on it.
Browser: Chrome v117
@isaacHagoel any chance you can take a look and confirm this behavior also happens for you? I can't figure out what code in the library manages scrolling in the keyboard drag case based on element visibility, nor where "up" and "down" are handled specially such that it works for one but not the other.
sorry. I can't reproduce - probably i don't understand the issue. can you add a video or something?
On Thu, Nov 23, 2023 at 12:12 AM Francis Nimick @.***> wrote:
@isaacHagoel https://github.com/isaacHagoel any chance you can take a look and confirm this behavior also happens for you? I can't figure out what code in the library manages scrolling in the keyboard drag case based on element visibility, nor where "up" and "down" are handled specially such that it works for one but not the other.
— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/issues/504#issuecomment-1822747035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC4RMDX2IH256DJ26O3YFX237AVCNFSM6AAAAAA6NZCAGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSG42DOMBTGU . You are receiving this because you were mentioned.Message ID: @.***>