Skip to content

Commit

Permalink
Fixed memory leak in smooth scrolling due to incorrect visibility check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrriis committed Jul 27, 2023
1 parent 08f9838 commit 3f7e12e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void ancestorAdded( AncestorEvent event ) {
@Override
public void ancestorMoved( AncestorEvent event ) {
JViewport viewport = (JViewport)event.getComponent();
if(viewport.isDisplayable()) {
if(viewport.isShowing()) {
SmoothScrollingHelper.registerViewport( viewport );
} else {
SmoothScrollingHelper.unregisterViewport( viewport );
Expand Down

0 comments on commit 3f7e12e

Please sign in to comment.