Home » Javascript » How to use javascript to simulate a mouse wheel scroll on Firefox 60?

How to use javascript to simulate a mouse wheel scroll on Firefox 60?

Posted by: admin October 29, 2018 Leave a comment

Questions:

I have been using DOMMouseScroll :

example : new WheelEvent('DOMMouseScroll', {deltaY: 3, detail: 3}to simulate a mouse scroll on Firefox, and it worked fine.
But I don’t know why it’s no longer working on the latest Firefox (version 60).

Is it changed to use another event name or something else?

Answers: