Changeset 437

Show
Ignore:
Timestamp:
12/08/09 18:25:02 (3 years ago)
Author:
joerg
Message:
 
Location:
java/JLatexEditor
Files:
6 removed
1 modified

Legend:

Unmodified
Added
Removed
  • java/JLatexEditor/src/sce/component/SCEDiff.java

    r436 r437  
    114114  } 
    115115 
     116  private boolean paneScrollBarAdjusting = false; 
     117  private boolean diffScrollBarAdjusting = false; 
    116118  public void adjustmentValueChanged(AdjustmentEvent e) { 
    117119    JScrollBar scrollBar = (JScrollBar) e.getSource(); 
     
    122124      scrollPane.getHorizontalScrollBar().setValue(e.getValue()); 
    123125    } 
    124     if(scrollBar.getName().equals("paneV") && !e.getValueIsAdjusting()) { 
     126    if(scrollBar.getName().equals("paneV") && !paneScrollBarAdjusting) { 
    125127      if(linesMapPaneDiff == null) return; 
    126128       
     
    133135 
    134136      JScrollBar bar = scrollDiff.getVerticalScrollBar(); 
    135       bar.setValueIsAdjusting(true); 
     137      diffScrollBarAdjusting = true; 
    136138      bar.setValue(diffY - diff.getVisibleRect().height/2); 
    137       bar.setValueIsAdjusting(false); 
     139      diffScrollBarAdjusting = false; 
    138140      repaint(); 
    139141    } 
    140     if(scrollBar.getName().equals("diffV") && !e.getValueIsAdjusting()) { 
     142    if(scrollBar.getName().equals("diffV") && !diffScrollBarAdjusting) { 
    141143      if(linesMapDiffPane == null) return; 
    142144 
     
    149151 
    150152      JScrollBar bar = scrollPane.getVerticalScrollBar(); 
    151       bar.setValueIsAdjusting(true); 
     153      paneScrollBarAdjusting = true; 
    152154      bar.setValue(paneY - pane.getVisibleRect().height/2); 
    153       bar.setValueIsAdjusting(false); 
     155      paneScrollBarAdjusting = false; 
    154156      repaint(); 
    155157    }