Commit 105d7907 by Johannes Edmeier

fix "Cannot read property 'scrollLeft' of undefined" in threads

parent ecf99dd6
......@@ -183,7 +183,7 @@
},
isInView(xPos) {
const scrollable = this.$el;
return xPos >= scrollable.scrollLeft && xPos <= scrollable.scrollLeft + scrollable.clientWidth;
return scrollable && xPos >= scrollable.scrollLeft && xPos <= (scrollable.scrollLeft + scrollable.clientWidth);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment