title: Realtime GraphView scrolling locked
body: <p>I'm having some problems with scrolling in my GraphView right now. I'll give an example of the behaviour using this image:</p>
  <p><a href="https://i.stack.imgur.com/fAXg0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fAXg0.png" alt="enter image description here" /></a></p>
  <p>Pretend we want to scroll left (to July 2018). We pull the graph right and the graph scrolls. Our viewport is now something like [May 2018, July 2018]. However, when I try to scroll left again (pre-May 2018), when my finger touches the left side of the graph, it jumps back to July 2018- Sept 2018. (We have data pre-April 2018)</p>
  <p>I'm basically locked between July and September for some reason, and it won't let me scroll left past what's currently in view.</p>
  <p>Some issues that I hypothesized could have happened:</p>
  <ol>
  <li>My graph is a real-time graph that, when the page is open, runs from the start to present day before stopping. I have set it so that it automatically scrolls, and I set the viewport to achieve the scrolling. Setting the viewport may have caused this to lock and hence I wouldn't be able to scroll anymore.</li>
  </ol>
  <p>I have included my code for my graph below.</p>
  <pre><code>graphView.getViewport().setScalable(true);
  graphView.getViewport().setScalableY(true);
  graphView.getViewport().setScrollable(true);
  graphView.getViewport().setScrollableY(true);
  
  graphView.getViewport().setYAxisBoundsManual(true);
  graphView.getViewport().setMaxY(25);
  graphView.getViewport().setMinY(-25);
  graphView.getViewport().setXAxisBoundsManual(true);
  </code></pre>
  <p>updating viewport as x1 increments:</p>
  <pre><code>if (x1 &gt; 100) {
              graphView.getViewport().setMaxX(x1 + 100);
              graphView.getViewport().setMinX(x1 - 100);
          } else if (x1 &lt;= 100) {
              graphView.getViewport().setMaxX(200);
              graphView.getViewport().setMinX(0);
          }
  </code></pre>