Revision: 32491
Updated Code
at December 19, 2010 20:50 by rmdort
Updated Code
// Ipad Iphone
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))||(navigator.userAgent.match(/Android/i))) {
var isTouchScreen = 1;
}else{
var isTouchScreen = 0;
}
$container.bind('touchstart', function(e){
var cpos = dragPosition;
if(isTouchScreen){
e = e.originalEvent.touches[0];
}
var sY = e.pageY;
var sX = e.pageX;
$container.bind('touchmove',function(ev){
if(isTouchScreen){
ev.preventDefault();
ev = ev.originalEvent.touches[0];
}
var top = cpos-(ev.pageY-sY);
positionDrag(top);
});
$container.bind('touchend',function(ev){
$container.unbind('touchmove touchend');
});
});
Revision: 32490
Updated Code
at September 26, 2010 16:18 by rmdort
Updated Code
// Ipad Iphone
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
var isTouchScreen = 1;
}else{
var isTouchScreen = 0;
}
$container.bind('touchstart', function(e){
var cpos = dragPosition;
if(isTouchScreen){
e = e.originalEvent.touches[0];
}
var sY = e.pageY;
var sX = e.pageX;
$container.bind('touchmove',function(ev){
if(isTouchScreen){
ev.preventDefault();
ev = ev.originalEvent.touches[0];
}
var top = cpos-(ev.pageY-sY);
positionDrag(top);
});
$container.bind('touchend',function(ev){
$container.unbind('touchmove touchend');
});
Revision: 32489
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 26, 2010 16:17 by rmdort
Initial Code
// Ipad Iphone
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
var isTouchScreen = 1;
}else{
var isTouchScreen = 0;
}
$container.children().bind('touchstart', function(e){
var cpos = dragPosition;
if(isTouchScreen){
e = e.originalEvent.touches[0];
}
var sY = e.pageY;
var sX = e.pageX;
$container.children().bind('touchmove',function(ev){
if(isTouchScreen){
ev.preventDefault();
ev = ev.originalEvent.touches[0];
}
var top = cpos-(ev.pageY-sY);
positionDrag(top);
});
$container.children().bind('touchend',function(ev){
$container.unbind('touchmove touchend');
});
});
Initial URL
Initial Description
Add this code to jscrollpane.js
Initial Title
Jscrollpane Ipad/Iphone/iPod/iOS Scroll Support
Initial Tags
iphone
Initial Language
jQuery