Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.17 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.17 KB

JS Element Move

Use JavaScript to move the elements correctly.

  • mousedown
  • mouseup
  • mousemove

Mouse Events Tutorial

For touch devices use the touch events.

  • touchstart
  • touchend
  • touchmove

First check if you are in a touch device. So you can act accordingly and initiate what is needed.

Detect touch

function is_touch_device() {
    return 'ontouchstart' in window;
}

But the touch will not work on all devices with this calculation, there comes from me separately still a section here purely soon.

Contribute

Please file an issue if you think something could be improved. Please submit Pull Requests when ever possible.

Built with

NetBeans - NetBeans

VSC - Visual Studio Code

Authors

Samet Tarim - All works

License

MIT - prod3v3loper