Skip to content

Commit

Permalink
add missing invalidate call (#35)
Browse files Browse the repository at this point in the history
* add missing invalidate call

* added check if scrollbar is enabled (at least in one direction)
  • Loading branch information
markusressel authored and natario1 committed Jun 17, 2018
1 parent 4b6b05f commit 8150d49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/src/main/java/com/otaliastudios/zoom/ZoomLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ public void onUpdate(ZoomEngine helper, Matrix matrix) {
invalidate();
}

awakenScrollBars();
if ((isHorizontalScrollBarEnabled() || isVerticalScrollBarEnabled()) && !awakenScrollBars()) {
invalidate();
}
}

@Override
Expand Down

0 comments on commit 8150d49

Please sign in to comment.