You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a ScrollView's content is the same height as itself, overscroll effects are never triggered, even if always_overscroll is set to True.
This blocks some functionality like a nested ScrollView not triggering its parent's scrolling (as normally happens when overscroll is enabled).
Expected behavior
The content should utilize the effect_cls to position itself to some degree, just as it does when content height does not match scrollview height
To Reproduce
This example illustrates the issue: dragging the button up/down does not scroll the outer scrollview, but if the height of the button is set to self.parent.height+1, it will.
Proposed Solution
the '_update_effect_y()' and '_update_effect_x()' functions of ScrollView should be updated to better handle this edge case, for instance, a simple addition like setting sh to a small number instead of 0 like:
Software Versions
Describe the bug
When a ScrollView's content is the same height as itself, overscroll effects are never triggered, even if always_overscroll is set to True.
This blocks some functionality like a nested ScrollView not triggering its parent's scrolling (as normally happens when overscroll is enabled).
Expected behavior
The content should utilize the effect_cls to position itself to some degree, just as it does when content height does not match scrollview height
To Reproduce
This example illustrates the issue: dragging the button up/down does not scroll the outer scrollview, but if the height of the button is set to self.parent.height+1, it will.
Proposed Solution
the '_update_effect_y()' and '_update_effect_x()' functions of ScrollView should be updated to better handle this edge case, for instance, a simple addition like setting sh to a small number instead of 0 like:
resolves the issue and allows for overscroll effects
edit:
changed the proposed solution to not cause a bug where scrolling position was set to the bottom sometimes
The text was updated successfully, but these errors were encountered: