I would like to change the transform origin to the center point of the pinch gesture.  This working code (safariDevSample) applies scale and rotation without changing the transform-origin:  window.angle = 0; //global to store data for later reset ......
I have a swipe functionality on my mobile page, and I want to used touchstart, touchend, and touchmove to track the swipe functionality across the device without affecting the scrolling.  Here is my code.    jQuery('.first-frame').bind('t...
I've been working on a project with fabricjs. Great library, but I ran into a stupid problem which I can't seem to solve. I've been working with version 1.7.15 and prefer to stick to the stable version for now instead of upgrading to vers...
I have a html5 application with several viewports. I intend to use HammerJS for providing pinch/zoom gesture on individual viewports. Currently, whenever I pinch in Safari/OSX, the whole window is zoomed in or out, and I want to prevent that. For iOS...
I'm making a game in JS where a user is given a prompt for a certain path, and then has to perform ("swipe") the same path via touch/pointer. If the path is close enough to the original prompt, then it's considered a success, otherwis...
I have a blue #square vertically and horizontally centered in my viewport on my iOS device …  <div id="square"></div> #square {     width:100px;     height:100px;     background:blue;     margin:0 auto; }   I'd like to resiz...
I have a little web gallery that I added swipe navigation to for mobile browsers.  I did it with pretty simple touchstart/touchmove/touchend event tracking.  The problem is that when I try to pinch zoom in the browser window it fails if any finger st...
I have a web application written in javascript which uses the google maps api to map certain features. However, I am having some unwanted results when users with touchscreen computers try to use the map.  Specifically, I would like to get rid of the...
I'm facing a problem that I really don't know where to start solving, so I hope this question isn't too broad.  I'm making and app that on a screen I'll have a rectangle with some information (let's say it's a <ion-grid...
I have two divs:  <div class="main">     <div class="child" /> </div>   I've created an event listener for the main element which enables the user to drag the child element around  map.bind('touchmove', f...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.