title: How to get the divs current scroll position?
body: <p>I want to know the <strong>scroll position</strong> of a div.<br>
  I have two buttons left and right and in between there is a scroll-able div with data populated inside it.<br>
  I want to disable the button at the right if there is no data in right and disable the button to the left if no more data at the left.
  For that i think i need to know the current scroll position. Any suggestion to enhance this will be awesome.</p>
  
  <pre><code> `    return &lt;div className="row"&gt;
          &lt;div ref="previous_column" onClick={this.shift_left} href="#" style={style_div}&gt;&lt;/div&gt;
          &lt;div className="table-container" ref="table_container"&gt; 
              &lt;div className="sliding-window"&gt;
                      {this.props.grocery_cart.delivery_slots.map(function(obj) {
                              return &lt;div key={d}&gt;
                                          &lt;CalendarDetail values={d} ref="delivery_date"/&gt;
                                      &lt;/div&gt;
                      }.bind(this))}
               &lt;/div&gt;
          &lt;/div&gt;
          &lt;div ref="next_column" href="#" onClick={this.shift_right} style={style_div} className="plr-slide"&gt;&lt;/div&gt;
   &lt;/div&gt;`
  </code></pre>
  
  <p>I have just added few relevant codes.</p>
  
  <p>The Previous columns and next columns are the divs (left and right button)</p>
  
  <p>The Table Container is a fixed div and the sliding window inside it slides. </p>