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
Most mouse movement deltas are unusable due to being rounded to zero after the smooth scrolling update. Unless rapid mouse movements are applied, the deltas are almost certainly zero.
1.0.0
Textual-1.0.0.webm
2.0.4
Textual-2.0.4.webm
Expected behaviour would be the original, unless this was intended side effect when converting to integers to the new properties, as most of the float values are below/above ±0.5 depending on if its a negative value or not, so they get rounded to zero.
One idea would be to give the user access to the float values, but that seems a bit half baked, as the new properties would become mostly useless.
Another idea would be clamping the values to ±1 or the closest none-zero value.
willmcgugan
changed the title
Regression - Most Mouse Deltas Rounded to Zero In Textual 2.0
Most Mouse Deltas Rounded to Zero In Textual 2.0
Feb 18, 2025
The Bug
Most mouse movement deltas are unusable due to being rounded to zero after the smooth scrolling update. Unless rapid mouse movements are applied, the deltas are almost certainly zero.
1.0.0
Textual-1.0.0.webm
2.0.4
Textual-2.0.4.webm
Expected behaviour would be the original, unless this was intended side effect when converting to integers to the new properties, as most of the float values are below/above ±0.5 depending on if its a negative value or not, so they get rounded to zero.
One idea would be to give the user access to the float values, but that seems a bit half baked, as the new properties would become mostly useless.
Another idea would be clamping the values to ±1 or the closest none-zero value.
MRE
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: