box / viewer.js

A viewer for documents converted with the Box View API
Apache License 2.0
336 stars 99 forks source link

Scroll events: Human vs code triggered. Can we differentiate? #235

Open Pawan-Bishnoi opened 7 years ago

Pawan-Bishnoi commented 7 years ago

This is regarding scroll events. Can I differentiate when a user scrolls from the ones triggered by code?

For example, in jquery we have ev.originalEvent which can tell if this event was triggered by a human.

Or maybe a way to pass custom data when triggering viewer scroll and access the same in event listeners?