JSROOT in interactive school board


Hello everyone,

i use JSROOT to create some graphs to show in an interactive school board.

Is there anything i can do to to keep mouse events and override touch events from JSROOT?

I cant move graphical elements like i do in my laptop with mouse.

Thanks in advance.

Hi,

JSROOT has very little support of touch-capable devices.
Only zooming on TH1 and TH2 partially works with one-finger and two-fingers touch events:

https://root.cern/js/latest/?nobrowser&file=../files/hsimple.root&item=hpxpy;1&opt=COLZ

Does it work for you on the interactive board?
You can try same link on your smartphone to see how it works.

Also one can activate and select context menu - if press on touch device for few seconds on one place.

Probably one can implement several more features - like moving around text or title or stats box.
But it should be done inside JSROOT code.

Regards,
Sergey

Thanks for the answer,

yes it works for me in an interactive board,

actually i can move TEllipses, boxes, etc , TLatex text, Titles …

I only have problems when stretching (not moving) TArrow, when i show something in class, or when i am trying to change some points (markers) position in a TGraph.

Problem is that cursor is not transforming to a cross on hover. I tried in the classroom but no use, i added some javascript code to my graphs but didnt work.

Anyway thanks again.

Hi,

I never had experience with interactive boards.
Probably they mimic some mouse events - but not completely.
Some of my colleges have such interactive board - so I will try to check how JSROOT works there.
If I can reproduce problem - then maybe I will find solution too.

Regards,
Sergey