Disabled scroll blocking for touch devices
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Apr 2013 12:54:15 +0000 (14:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Apr 2013 12:54:15 +0000 (14:54 +0200)
wcfsetup/install/files/js/WCF.js

index a0bff75e4efa3af677c59c44611e722fd6e7b542..bf102718fa0a094826e7ab891847c5ad6bb2099f 100755 (executable)
@@ -5400,6 +5400,11 @@ WCF.System.DisableScrolling = {
         * Disables scrolling.
         */
        disable: function () {
+               // do not block scrolling on touch devices
+               if ($.browser.touch) {
+                       return;
+               }
+               
                if (this._depth === 0) {
                        this._oldOverflow = $(document.body).css('overflow');
                        $(document.body).css('overflow', 'hidden');