Fancy Product Designer Multistep Product Configurator
Right now it looks like I can't advance the page when I have my finger on the canvas. Touching and moving my finger on the yellow areas allow me to advance. However, if I touch any other area something is grabbing my touch requests and not allowing to advance. I have received several tickets from my customers that state my stite is locking their phone but in reality the canvas is grabbing the scroll requests.
My feature request: If a fancy product doesn't have draggable elements then the canvas must release control and allow the page to advance on mobile devices when trying to scroll with a finger.
The snippet from R. Blasche will be included in next update (V3.4.3), so you do not need it anymore.
I agree with @JohnReimann. Enable canvas lock automatically when an object is being dragged. Way to go... :D
Added in 3.1
Great! Can't wait to try it out.
R.Blasche could you tell me which js file you placed that code to get over the issue please?
This is a GREAT improvement! - Just one thing. Is it possible to "lock" the scrolling ONLY while the customer is dragging an image around in an upload zone?
At the moment when customer drags image up or down in an upload zone the whole canvas scroll making it difficult to position image.
I cannot scroll even though none of the objects on the stage are Dragable. What is the problem?
Make sure this script is loaded after all the other scripts (in this case fpd-plus and jquery-fpd)
So for WP, add this to your functions.php:
// include after fpd-plus script
wp_register_script('myscript', get_stylesheet_directory_uri() . '/js/myscript.js', array('fpd-plus','jquery-fpd'), '1.0', true);
Obviously create the file /js/myscript.js in your template dir. and fill it with the snippet i posted before.
I hope that works for you.
Will be added in next version.
i have a version 3.6.1 but it is still does not working. While the moving designs or pics the canvas is also scrolling on mobile phones,
can somebody please help me?
I disabled the canvas touch scrolling option to try move elements without scrolling the page (up, down, left and right) and I'm getting this warning from fabric.js:
Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 _onMouseMove @ fabric.min.js:4
Following the link on the warning I found this:
AddEventListenerOptions defaults passive to false. With this change touchstart and touchmove listeners added to the document will default to passive:true (so that calls to preventDefault will be ignored).. If the value is explicitly provided in the AddEventListenerOptions it will continue having the value specified by the page. This is behind a flag starting in Chrome 54, and enabled by default in Chrome 56. See https://developers.google.com/web/updates/2017/01/scrolling-intervention
I have Chrome 56.0.2924.87
Should I report this on a new ticket?
I agree, dragging an element right now scrolls up and down the page degrading the user experience. Definitely dragging an element should lock the screen on the canvas.