anseki / plain-draggable

The simple and high performance library to allow HTML/SVG element to be dragged.
https://anseki.github.io/plain-draggable/
MIT License
773 stars 99 forks source link

Element can't move correctly unless I open the developer console #138

Closed ddky16 closed 1 year ago

ddky16 commented 1 year ago

I have a project with Unity Game Engine about making a Finite State Machine editor, and I'm using plain-draggable to move my state. But every time I open my editor and add a state I can't move it correctly it was stuck on the top left corner. image image

anseki commented 1 year ago

Hi @ddky16, thank you for the comment. To reproduce that, could you show an example by using e.g. https://jsfiddle.net/ ?

ddky16 commented 1 year ago

https://jsfiddle.net/#&togetherjs=rmVn684cIH This is the source code. But it was combined with unity for setting the fullscreen canvas

anseki commented 1 year ago

I couldn't open your JSFiddle page because of TogetherJS maybe. It doesn't have to collaborate, and make a normal JSFiddle page without TogetherJS, to make it be open page.

ddky16 commented 1 year ago

here is the editor page it wouldn't include my unity js code

anseki commented 1 year ago

Your JSFiddle page didn't work. It seems that you are using JSFiddle in the wrong way. JSFiddle is a code playground service to test code snippets, etc. It is not a hosting service to present your code to the public. That is, the code snippet on JSFiddle page should work even if it has problem. For example: https://jsfiddle.net/8qy16d9r/ Drag the blue box.

If you want someone to help finding a bug in your code, you should show the problem on JSFiddle by putting your code that has problem.

ddky16 commented 1 year ago

i am sorry i'm never use jsfiddle before

anseki commented 1 year ago

It's OK. :smile: I or someone might be able to help you if you show the problem.

ddky16 commented 1 year ago

https://github.com/ddky16/fsm-state-unity I'm sorry i can't use the jsfiddle but u can try this project

anseki commented 1 year ago

It's OK. :smile: I or someone might be able to help you if you show the problem.

anseki commented 1 year ago

No reply came, then this abandoned issue is closed.