.swipeBox *{
-webkit-transform: translate3d(0,0,0);
}といった具合にスワイプギャラリーの構成要素すべてにtranslate3dを指定してGPUをONにすることでチラツキが解決する。
.swipeBox *{
-webkit-transform: translate3d(0,0,0);
}$("img").css("opacity",0).animate({
"opacity":"1"
});$("img").css("opacity",0).animate({
"opacity":"0.99"
});
var winHeight = window.innerHeightvar clientX = event.targetTouches[0].pageY - $(window).scrollTop()$("hoge").bind("touchstart",function(e){
var e = event.touches[0];
console.log(e.pageX)
})$("hoge").bind("touchstart",function(e){
var event = e.originalEvent.changedTouches[0];
console.log(event.pageX)
})myScroll = new iScroll('wrapper');
$("#nameNav a").click(function(){
myScroll.scrollToElement($(this).attr("href"), 1);
return false;
});var tap = window.ontouchstart===null?"touchstart":"click";
$("#hoge").bind(tap,function(){
//fire
});(function($){
var portraitWidth,landscapeWidth;
if(/Android/.test(window.navigator.userAgent)){
var changeEvent = "resize";
}else{
var changeEvent = "orientationchange";
$("body").width(320)
}
$(window).bind(changeEvent, function(){
if(Math.abs(window.orientation) === 0){
portraitWidth=$(window).width();
if(/Android/.test(window.navigator.userAgent)){
if(!portraitWidth)portraitWidth=$(window).width();
}else{
portraitWidth=$(window).width();
}
$("html").css("zoom" , portraitWidth/320 );
}else{
$("body").removeClass("portrait").addClass("landscape");
if(/Android/.test(window.navigator.userAgent)){
if(!landscapeWidth)landscapeWidth=$(window).width();
}else{
landscapeWidth=$(window).width();
}
$("html").css("zoom" , landscapeWidth/320 );
}
}).trigger(changeEvent);
})(jQuery);
$(function(){
$(".hoge img").load(function(){
if(!$(this).data("gifFlag")){
$(this).data("gifFlag",true)
$(this).css({
"background":"url("+$(this).attr("src")+")",
webktBackgroundSize:"100%",
backgroundSize:"100%"
}).attr("width",$(this).width()).attr("height",$(this).height()).
$(this).attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw%3D%3D");
}
});
});sudo /Developer/Library/uninstall-devtools --mode=all<link rel="stylesheet" media="all and (orientation:portrait)" href="style/portrait.css">
<link rel="stylesheet" media="all and (orientation:landscape)" href="style/landscape.css">
$("hoge").bind("touchstart",function(){
//処理
})$("hoge").bind("touchstart",function(e){
console.log(e.pageX)
})$("hoge").bind("touchstart",function(e){
var e = event.touches[0];
console.log(e.pageX)
})<meta name="apple-mobile-web-app-capable" content="yes" />window.onload = function(){
$("body").animate({scrollTop:0})
}この広告は90日以上新しい記事の投稿がないブログに表示されております。