How to Swipe left/right and top/bottom to trigger something
swipe to the left or right to change an image and swipe to the top or bottom to change the background color. We can use the heading property to find out, in which direction there was the swipe, the heading ranges between -180 to +180.
Comments
Post a Comment