Interactive interface for browsing global, full-resolution satellite imagery
fix conditional to check including one pixel offset that causes simplebar padding to remain
Ed Platoaa1c2028ce06
diff --git a/web/js/components/util/scrollbar.js b/web/js/components/util/scrollbar.jsindex 74a8de689..a61144d55 100644--- a/web/js/components/util/scrollbar.js+++ b/web/js/components/util/scrollbar.js@@ -22,7 +22,7 @@ export default class SimpleBar extends React.Component {*/updateBoolean() {const element = this.content;- const hasOverflowingChildren = element.offsetHeight < element.scrollHeight;+ const hasOverflowingChildren = element.offsetHeight + 1 < element.scrollHeight;if (this.state.needsScrollBar !== hasOverflowingChildren) {this.setState({ needsScrollBar: hasOverflowingChildren });}