Utilizing the wheel-indicator JavaScript library, I am looking to revert the mouse wheel event back to its original state after it was initially set to preventDefault()
.
Despite attempting to use
indicator.setOptions({preventMouse:"false"})
as suggested by the instance method which states "The only argument must be Object", this approach did not yield the desired results.
var indicator = new WheelIndicator({
elem: document.querySelector('.element'),
callback: function(e){
console.log(e.direction);
//PERFORM SOME ACTION HERE
}
});
indicator.setOptions({preventMouse:"false"});