Jump to content
Search Community

Draggable & Electronjs

sayyeahlo test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello,

I'm trying to implement Draggable with Electronjs to make a multi-touch table.

Everything works fine until I apply a rotation on the parent of a draggable element, then the drag element is blocked.

 

It works as expected in chrome browser but in electron the matrix seems wrong. The points are converted to coma.

matrix(0,93969, 0,34202, -0,34202, 0,93969, 0, 0)  instead of matrix( 0.93969,0.34202,-0.34202,0.93969,0,0)

 

I'm using TweenMax to apply the rotation so I'm wondering, is it a Chromium or gsap problem ?

 

In TweenMax source code, where is the function to apply the style attribute on the element ?

Thank you

Capture d’écran 2018-04-08 à 13.16.13.png

Link to comment
Share on other sites

Thanks for the links, it works! (they never pop up when I was looking for the comma/dot problem on github...)

The solution is to change the local before compilation :
https://stackoverflow.com/questions/7165108/in-os-x-lion-lang-is-not-set-to-utf-8-how-to-fix-it

in my case "fr_FR" to "en_US"...

I was worried to implement all kind of drag/rotation interactions without gsap!


 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...