blockScrollTraverse function
Blocks a scroll event in the vertical and horizontal directions that traverses the element
.
Implementation
void blockScrollTraverse(Element element) {
element.onWheel.listen((event) {
var block = blockVerticalScrollTraverseEvent(element, event);
if (!block) {
blockHorizontalScrollTraverseEvent(element, event);
}
});
}