Open karliss opened 4 years ago
I wonder if this is related to "ensureVisible" in ScrollView. If you return instantly from that function does the issue go away?
Either way, ill take a look
My guess about drag scrolling might be wrong. Tried changing scrollMode
to ScrollMode.NORMAL
as workaround, but it didn't help.
my guess is its this function: https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/containers/ScrollView.hx#L63-L97
If you remove, comment it out, whatever, does it fix the problem?
Yes, disabling ensureVisible
prevents the problem.
thought so... ensureVisible needs some work to get the coords right then... well, its good news, nothing wrong with list, table, scroll, its just trying to jump to the wrong place because you gave a control focus. :/
Can't repeat this anymore. Probably fixed.
Expected Behavior
Clicking on a textfield either doesn't cause view to move or moves it inside view when it's on edge.
Current Behavior
When mouse is pressed down on a textfield, view jumps to the top, when mouse is released it jumps back down.
Possible Solution
Seems to be related to mouse drag. Maybe clicking on text field causes a subset of mouse events to be sent to scrollview causing mouse drag to unexpectedly activate in a broken way.
Steps to Reproduce (for bugs)
Media
Test app / minimal test case
Note the list of item needs to be sufficiently long.
Context
Your Environment