JAL-4375 Fixed sensitivity of new more responsive left-right side scrolling
authorBen Soares <b.soares@dundee.ac.uk>
Wed, 31 Jan 2024 09:11:43 +0000 (09:11 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Wed, 31 Jan 2024 09:11:43 +0000 (09:11 +0000)
src/jalview/gui/SeqPanel.java

index c563c79..2634b7a 100644 (file)
@@ -2253,7 +2253,7 @@ public class SeqPanel extends JPanel
          */
         if (!ap.isScrolledFullyRight())
         {
-          av.getRanges().scrollRight(true, size);
+          av.getRanges().scrollRight(true, size - 1);
         }
       }
       else
@@ -2277,7 +2277,7 @@ public class SeqPanel extends JPanel
         /*
          * scroll left
          */
-        av.getRanges().scrollRight(false, size);
+        av.getRanges().scrollRight(false, size - 1);
       }
       else
       {