git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc813e
)
JAL-1691 prevent propagation of scrolling on mouseover follow highlight
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 24 Apr 2015 14:42:10 +0000
(15:42 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 24 Apr 2015 14:42:10 +0000
(15:42 +0100)
src/jalview/gui/SeqPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqPanel.java
b/src/jalview/gui/SeqPanel.java
index
6cd5b70
..
791a371
100644
(file)
--- a/
src/jalview/gui/SeqPanel.java
+++ b/
src/jalview/gui/SeqPanel.java
@@
-649,6
+649,13
@@
public class SeqPanel extends JPanel implements MouseListener,
{
if (av.isFollowHighlight())
{
+ /*
+ * if scrollToPosition requires scroll adjustment, this flag prevents
+ * another scroll event being propagated back to the originator
+ *
+ * @see AlignmentPanel#adjustmentValueChanged
+ */
+ ap.setFollowingComplementScroll(true);
if (ap.scrollToPosition(results, false))
{
seqCanvas.revalidate();