blockHorizontalScrollTraverse function

void blockHorizontalScrollTraverse(
  1. Element element
)

Blocks a scroll event in the horizontal direction that traverses the element.

Implementation

void blockHorizontalScrollTraverse(Element element) {
  element.onWheel
      .listen((event) => blockHorizontalScrollTraverseEvent(element, event));
}