mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
TextComponents: fixed too fast scrolling in multi-line text components when using touchpads (e.g. on macOS) (issue #892)
This commit is contained in:
@@ -9,6 +9,8 @@ FlatLaf Change Log
|
|||||||
using custom component that overrides `Component.contains(int x, int y)` and
|
using custom component that overrides `Component.contains(int x, int y)` and
|
||||||
invokes `SwingUtilities.convertPoint()` (or similar) from the overridden
|
invokes `SwingUtilities.convertPoint()` (or similar) from the overridden
|
||||||
method. (issue #878)
|
method. (issue #878)
|
||||||
|
- TextComponents: Fixed too fast scrolling in multi-line text components when
|
||||||
|
using touchpads (e.g. on macOS). (issue #892)
|
||||||
- ToolBar: Fixed endless loop if button in Toolbar has focus and is made
|
- ToolBar: Fixed endless loop if button in Toolbar has focus and is made
|
||||||
invisible. (issue #884)
|
invisible. (issue #884)
|
||||||
|
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ public class FlatScrollPaneUI
|
|||||||
|
|
||||||
// Use (0, 0) view position to obtain a constant unit increment of first item.
|
// Use (0, 0) view position to obtain a constant unit increment of first item.
|
||||||
// Unit increment may be different for each item.
|
// Unit increment may be different for each item.
|
||||||
Rectangle visibleRect = new Rectangle( viewport.getViewSize() );
|
Rectangle visibleRect = new Rectangle( viewport.getExtentSize() );
|
||||||
unitIncrement = scrollable.getScrollableUnitIncrement( visibleRect, orientation, 1 );
|
unitIncrement = scrollable.getScrollableUnitIncrement( visibleRect, orientation, 1 );
|
||||||
|
|
||||||
if( unitIncrement > 0 ) {
|
if( unitIncrement > 0 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user