Skip to content

prod3v3loper/js-element-move

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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