Browse Source

Fixed some sign bugs with mouse wheel scrolling in VFilterSelect #4518

svn changeset:20334/svn branch:6.7
tags/6.7.0.beta1
John Alhroos 12 years ago
parent
commit
99375fed88
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java

+ 3
- 2
src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java View File

@@ -319,7 +319,8 @@ public class VFilterSelect extends Composite implements Paintable, Field,
}

/*
* Timer for scrolling pages up or down.
* Using a timer to scroll up or down the pages so when we receive lots
* of consecutive mouse wheel events the pages does not flicker.
*/
private LazyPageScroller lazyPageScroller = new LazyPageScroller();
private class LazyPageScroller extends Timer {
@@ -334,7 +335,7 @@ public class VFilterSelect extends Composite implements Paintable, Field,
}

public void scrollUp() {
if(currentPage - pagesToScroll >= 0){
if(currentPage + pagesToScroll > 0){
pagesToScroll--;
cancel();
schedule(100);

Loading…
Cancel
Save