|
From: <ma...@us...> - 2013-02-02 20:08:19
|
Revision: 1388
http://openautomation.svn.sourceforge.net/openautomation/?rev=1388&view=rev
Author: mayerch
Date: 2013-02-02 20:08:12 +0000 (Sat, 02 Feb 2013)
Log Message:
-----------
Improve scrolling for iOS devices (see bug tracker 3603028)
Modified Paths:
--------------
CometVisu/trunk/visu/designs/designglobals.css
CometVisu/trunk/visu/lib/templateengine.js
Modified: CometVisu/trunk/visu/designs/designglobals.css
===================================================================
--- CometVisu/trunk/visu/designs/designglobals.css 2013-02-02 17:00:22 UTC (rev 1387)
+++ CometVisu/trunk/visu/designs/designglobals.css 2013-02-02 20:08:12 UTC (rev 1388)
@@ -23,6 +23,7 @@
}
#main {
width: 100%;
+ -webkit-overflow-scrolling:touch;
}
#navbarLeft {
width: 0px; /* left bar width */
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 17:00:22 UTC (rev 1387)
+++ CometVisu/trunk/visu/lib/templateengine.js 2013-02-02 20:08:12 UTC (rev 1388)
@@ -500,6 +500,14 @@
$e.css('width', ourWidth + '%');
});
+ // Prevent elastic scrolling apart the main pane for iOS devices
+ $(document).bind( 'touchmove', function(e) {
+ e.preventDefault();
+ });
+ $('#main').bind( 'touchmove', function(e) {
+ e.stopPropagation();
+ });
+
// setup the scrollable
thisTemplateEngine.main_scroll = $('#main').scrollable({
keyboard : false,
@@ -1340,4 +1348,4 @@
}
});
};
-}
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|