scroll event into view when starting to edit

This commit is contained in:
Bruno Windels 2019-05-24 15:38:51 +02:00
parent fbb79e4686
commit 4626581dbe
2 changed files with 14 additions and 1 deletions

View file

@ -234,6 +234,13 @@ module.exports = React.createClass({
}
},
scrollToEventIfNeeded: function(eventId) {
const node = this.eventNodes[eventId];
if (node) {
node.scrollIntoView({block: "nearest", behavior: "instant"});
}
},
/* check the scroll state and send out pagination requests if necessary.
*/
checkFillState: function() {