Changeset 437
- Timestamp:
- 12/08/09 18:25:02 (3 years ago)
- Location:
- java/JLatexEditor
- Files:
-
- 6 removed
- 1 modified
-
src/sce/component/SCEDiff.java (modified) (4 diffs)
-
test-src/util/diff/diff1.tex (deleted)
-
test-src/util/diff/diff2.tex (deleted)
-
test-src/util/diff/talk1.tex (deleted)
-
test-src/util/diff/talk2.tex (deleted)
-
test-src/util/diff/talk3.tex (deleted)
-
test-src/util/diff/talk4.tex (deleted)
Legend:
- Unmodified
- Added
- Removed
-
java/JLatexEditor/src/sce/component/SCEDiff.java
r436 r437 114 114 } 115 115 116 private boolean paneScrollBarAdjusting = false; 117 private boolean diffScrollBarAdjusting = false; 116 118 public void adjustmentValueChanged(AdjustmentEvent e) { 117 119 JScrollBar scrollBar = (JScrollBar) e.getSource(); … … 122 124 scrollPane.getHorizontalScrollBar().setValue(e.getValue()); 123 125 } 124 if(scrollBar.getName().equals("paneV") && ! e.getValueIsAdjusting()) {126 if(scrollBar.getName().equals("paneV") && !paneScrollBarAdjusting) { 125 127 if(linesMapPaneDiff == null) return; 126 128 … … 133 135 134 136 JScrollBar bar = scrollDiff.getVerticalScrollBar(); 135 bar.setValueIsAdjusting(true);137 diffScrollBarAdjusting = true; 136 138 bar.setValue(diffY - diff.getVisibleRect().height/2); 137 bar.setValueIsAdjusting(false);139 diffScrollBarAdjusting = false; 138 140 repaint(); 139 141 } 140 if(scrollBar.getName().equals("diffV") && ! e.getValueIsAdjusting()) {142 if(scrollBar.getName().equals("diffV") && !diffScrollBarAdjusting) { 141 143 if(linesMapDiffPane == null) return; 142 144 … … 149 151 150 152 JScrollBar bar = scrollPane.getVerticalScrollBar(); 151 bar.setValueIsAdjusting(true);153 paneScrollBarAdjusting = true; 152 154 bar.setValue(paneY - pane.getVisibleRect().height/2); 153 bar.setValueIsAdjusting(false);155 paneScrollBarAdjusting = false; 154 156 repaint(); 155 157 }
![(please configure the [header_logo] section in trac.ini)](http://jlatexeditor.endrullis.de/chrome/site/logo.png)