med-material / r-shiny-js-data-capture

Data Capture System in Javascript, integrated into R Shiny
MIT License
1 stars 1 forks source link

Event Measurement: Scroll Wheel (scrolling/zooming) #11

Closed bastianilso closed 1 year ago

bastianilso commented 1 year ago

We would like to track when users perform scrolling or zooming, for example using the scroll wheel. We need to see which ways we can do this.

bilal-62210 commented 1 year ago

@bastianilso I think we can use this : image https://www.w3schools.com/jsref/event_onwheel.asp what do you think about this ?

bilal-62210 commented 1 year ago

@bastianilso This is my result for this event: log2022-10-31 13-2-21.105Event.csv This event for "scrolling" and "zoom" is called "wheel". What do you think about that?

bastianilso commented 1 year ago

Hi @bilal-62210 it would be nice if we could see whether it was wheel up or wheel down (scrolling up or down). We should be able to get that from the wheelevent in javascript. See e.g. https://www.w3schools.com/jsref/obj_wheelevent.asp

bilal-62210 commented 1 year ago

@bastianilso please take a look: log2022-10-31 14-28-57.363Event.csv Is this ok for you ?

bastianilso commented 1 year ago

@bilal-62210 nice. could we use "wheelUp" and "wheelDown" instead? I think they read more clear than Top/Bottom (usually we say "scrolling up", "scrolling down").

bilal-62210 commented 1 year ago

@bastianilso yes of course, you have an example at line 22 of this csv: log2022-10-31 14-34-28.491Event.csv is it ok?