Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Hijacking arrows keys and dragging #150

Open
markwoodward23 opened this issue Apr 27, 2017 · 2 comments
Open

Hijacking arrows keys and dragging #150

markwoodward23 opened this issue Apr 27, 2017 · 2 comments

Comments

@markwoodward23
Copy link

markwoodward23 commented Apr 27, 2017

I'm creating a slide based website based on Dragdealer that uses the arrow keys or dragging horizontally to navigate between slides. As soon as the Vrview loads on one of the slides, it hijacks the keyboard and mouse movements so I can't change slide anymore. I've tried commenting out the event listeners in embed.js, which stops the commands, but instead of allowing me to use the normal dragging and or arrow keys, it doesn't do anything.

Is it possible to change the arrows keys or remove the key binds?

@tommytee
Copy link
Contributor

tommytee commented May 8, 2017

You might want to take this question to stack exchange... (since its not really a vrview issue)

The keyboard events happen in the WebVR Polyfill.
https://github.com/googlevr/webvr-polyfill/blob/master/src/mouse-keyboard-vr-display.js

commenting out line 38 should work. https://github.com/googlevr/webvr-polyfill/blob/master/src/mouse-keyboard-vr-display.js#L38

Or commenting out that code directly in embed.js
(which you may have already tried)

@tommytee
Copy link
Contributor

I apologize for suggesting stack exchange / stack overflow. I recently tried to use stack overflow and discovered that it doesn't work very well.
I created a google group for questions and discussion.
https://groups.google.com/forum/#!forum/vrview-web

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants