You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Everyone,
I am new to famous, So i don't know, my code is either wrong or right.
I just apply logic that if user touchmove them i will set the modifier origin.
I just created a surface
{{#Modifier}}
{{>Surface template="image" align="[0.5,0.5]" origin="[0.5, 0.5]" size="[200,200]"}
{{/Modifier}}
In my js file add a event like this.
touchmove':function(evt, tpl){
tpl.modifier.setOrigin(
evt.changedTouches[0].clientX/($( window ).width()), evt.changedTouches[0].clientY/$( window ).height()
);
thanks in advanced.
The text was updated successfully, but these errors were encountered:
Hi Everyone,
I am new to famous, So i don't know, my code is either wrong or right.
I just apply logic that if user touchmove them i will set the modifier origin.
I just created a surface
{{#Modifier}}
{{>Surface template="image" align="[0.5,0.5]" origin="[0.5, 0.5]" size="[200,200]"}
{{/Modifier}}
In my js file add a event like this.$( window ).width()), evt.changedTouches[0].clientY/$ ( window ).height()
touchmove':function(evt, tpl){
tpl.modifier.setOrigin(
evt.changedTouches[0].clientX/(
);
thanks in advanced.
The text was updated successfully, but these errors were encountered: