Drag HTML Element #257
dennemark
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
that would make a great storybook as well... I'm slowly converting over the docs to a gatsby website that's easier to document and make PGs - i'll be sure to revisit the examples of Html component! 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Bit more complicated, but this one would send the poitner up and down events properly through to the canvas element, so the canvas element also receives pointer up and down events and scene can observe it.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just want to share a nice pattern to drag an HTML element. This works, because HTML is an abstractMesh under the hood and pointerDragBehaviour will be a child of it. So we will move around the button.
Beta Was this translation helpful? Give feedback.
All reactions