Moving aspects and interactions w an io game screen are simple?

beavoid
beavoid used Ask the Experts™
on
Hi
For a phone io game,
I'd like to be able to click/touch one part of a line, and move it.
If the HTML sends in the size of the game-window, does a phone luncher pass in its size?  obviously. Is there a minimum size?
Thanks.
Are touches simply like mouse clicks? No special module?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Developer & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
I'd like to be able to click/touch one part of a line, and move it.
Are touches simply like mouse clicks?

You can support them as one or independently https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Supporting_both_TouchEvent_and_MouseEvent.  If this is in the browser, be sure to note what is currently supported https://developer.mozilla.org/en-US/docs/Web/API/Document/touchmove_event
beavoidSelf Employed

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial