Forum Discussion
When jump next page previous page if use Middle Mouse Button/Wheel. It's possible...??
I am a javascript newbie, but I have a partial solution. So far I can only get it to work in Chrome and Edge.
This javascript will monitor the mouse wheel and adjust a variable:
var player=GetPlayer();
window.addEventListener('wheel', function(e){
var scrollCount = player.GetVar("Dial1");
if(e.wheelDelta<0 && scrollCount<0){
scrollCount++;
}
else if(e.wheelDelta>0 && scrollCount>-360){
scrollCount--;
}
player.SetVar("Dial1",scrollCount);
});
I have used this to move a dial using the mouse wheel. The range of the variable needs to be set in line 4 (highest value 0) and line 7 (lowest value -360). These correspond to Start value -360 and Initial value 0. my dial worked backwards.
You could set the slide to move on when the variable gets to a certain number with a Jump to Slide trigger.
If someone can help me get it working in IE that would be great.
can you please share the source file as it will be great help.
Related Content
- 6 months ago
- 9 months ago
- 12 months ago