camunda-modeler
Version:
Camunda Modeler for BPMN, DMN and CMMN, based on bpmn.io
25 lines (16 loc) • 341 B
JavaScript
;
/* global document */
var Hook = require('virtual-hook');
var nextTick = require('next-tick');
function RemoveHook(scroll) {
return Hook({
hook: function hook(node) {
if (scroll) {
nextTick(function() {
node.scrollIntoView();
});
}
}
});
}
module.exports = RemoveHook;