Skip to content

Commit

Permalink
Data Containers: call scroller.stop() when duration is 0 (references #…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Jun 3, 2024
1 parent 9720872 commit 72e2d14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/feathers/controls/GridView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2830,6 +2830,7 @@ class GridView extends BaseScrollContainer implements IIndexSelector implements
}

if (duration == 0.0) {
this.scroller.stop();
this.scroller.scrollX = targetX;
this.scroller.scrollY = targetY;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/GroupListView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,7 @@ class GroupListView extends BaseScrollContainer implements IDataSelector<Dynamic
}

if (duration == 0.0) {
this.scroller.stop();
this.scroller.scrollX = targetX;
this.scroller.scrollY = targetY;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/TreeGridView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2575,6 +2575,7 @@ class TreeGridView extends BaseScrollContainer implements IDataSelector<Dynamic>
}

if (duration == 0.0) {
this.scroller.stop();
this.scroller.scrollX = targetX;
this.scroller.scrollY = targetY;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/feathers/controls/TreeView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1861,6 +1861,7 @@ class TreeView extends BaseScrollContainer implements IDataSelector<Dynamic> imp
}

if (duration == 0.0) {
this.scroller.stop();
this.scroller.scrollX = targetX;
this.scroller.scrollY = targetY;
} else {
Expand Down

0 comments on commit 72e2d14

Please sign in to comment.