wagerfield/parallax — pull request #64 by cthedot (2014-04-22 21:11:22+00:00)
Title: to support Windows Tablet (tested on Surface 2) and Windows Phone (from ...

...8.1/IE11) removed desktop check and orientationSupport check. Seems easiest to simply support both orientation AND mouse events, no harm done I think.

I guess you tested on way more devices and may have reasons for the rather complicated checks for deviceorientation event and desktop support but I think simply using all available events is best. They should not interfere as will probably not happen at the same time on same device anyway (only case might be a hybrid Laptop user using mouse and moving his laptop/tablet at the same time. Even then it might work.

Orientation works on Windows Phone 8.1 which has IE 11 and is not recognized as a mobile device. Therefor the removal of the desktop check.

It also works on Windows 8.1 (RT on Surface 2 tested) where somehow the extra check for deviceorientation support made problems (and as described above should be not needed anyway). Somehow the directions on Surface are swapped (LeftRight is TopDown etc) but I had not the time to check why this happens and only tested the simple example anyway.

Hope you might be able to use the changes. Any comments would be great, thanks!