Skip to content

Commit

Permalink
Tiny fix to make sure handleDeviceCheck is the first handler that get…
Browse files Browse the repository at this point in the history
…s the deviceorientation event.
  • Loading branch information
fieldOfView committed Apr 7, 2011
1 parent f894e53 commit a34aadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gyro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gyro/source/gyro.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var krpanoplugin = function()

// initiate device check
if(!!window.DeviceOrientationEvent)
window.addEventListener("deviceorientation", handleDeviceCheck);
window.addEventListener("deviceorientation", handleDeviceCheck, true);

// register attributes
plugin.registerattribute("available",false, function(arg){}, function(){ return isDeviceAvailable; });
Expand Down

0 comments on commit a34aadb

Please sign in to comment.