Loading src/webedit/slider/slider.cpp +4 −1 Changes for src/webedit/slider/slider.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -486,7 +486,10 @@ extern "C" { js << "startAuto();"; } // Recalculate sizes and position on resize/orientation change js << "window.addEventListener('resize',function(){setSizes();show(cur);});"; js << "function onLayout(){setSizes();show(cur);}"; js << "window.addEventListener('resize',onLayout);"; js << "if(screen&&screen.orientation)screen.orientation.addEventListener('change',function(){setTimeout(onLayout,100);});"; js << "else window.addEventListener('orientationchange',function(){setTimeout(onLayout,200);});"; // Touch/swipe support for mobile js << "el.querySelectorAll('img,video,a,div,span,p,h1,h2,h3,h4,button').forEach(function(m){m.style.touchAction='pan-y';m.draggable=false;m.style.webkitUserDrag='none';m.style.userSelect='none';});"; js << "var tx=0,ty=0,moving=false;"; Loading Loading
src/webedit/slider/slider.cpp +4 −1 Changes for src/webedit/slider/slider.cpp: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -486,7 +486,10 @@ extern "C" { js << "startAuto();"; } // Recalculate sizes and position on resize/orientation change js << "window.addEventListener('resize',function(){setSizes();show(cur);});"; js << "function onLayout(){setSizes();show(cur);}"; js << "window.addEventListener('resize',onLayout);"; js << "if(screen&&screen.orientation)screen.orientation.addEventListener('change',function(){setTimeout(onLayout,100);});"; js << "else window.addEventListener('orientationchange',function(){setTimeout(onLayout,200);});"; // Touch/swipe support for mobile js << "el.querySelectorAll('img,video,a,div,span,p,h1,h2,h3,h4,button').forEach(function(m){m.style.touchAction='pan-y';m.draggable=false;m.style.webkitUserDrag='none';m.style.userSelect='none';});"; js << "var tx=0,ty=0,moving=false;"; Loading