You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to intercept nav events and prevent consequent logic from unfolding? Obviously one can intercept keydown, but that would be cumbersome, would be great if nav events themselves behaved similarly.
The text was updated successfully, but these errors were encountered:
@jayarjo Thanks for your feedback!
Yes, as you pointed out, there wasn't the procedure about preventing the navigation events in the previous polyfill.
I updated the polyfill with #156, and now you can prevent the events.
@jayarjo Yes, the flags are used for defining the prevent default behavior for the navigation events. Those flags are set as true when the events are triggered.
And if those flags are set as true, in the processing model flows to the prevented behavior of the corresponding events.
For example, in the polyfill code line 316 -319, it follows the prevented behavior of navbeforescroll.
if (!navbeforescrollPrevented) {
moveScroll(container, dir);
return true;
}
Is there a way to intercept nav events and prevent consequent logic from unfolding? Obviously one can intercept
keydown
, but that would be cumbersome, would be great if nav events themselves behaved similarly.The text was updated successfully, but these errors were encountered: