Skip to content

Commit

Permalink
Remove legacy check for touch support (#139)
Browse files Browse the repository at this point in the history
* Upgrade packages

* Remove legacy check for touch support
  • Loading branch information
scriptex authored Aug 30, 2021
1 parent 9fbca1a commit a4401d8
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 337 deletions.
3 changes: 1 addition & 2 deletions dist/animate.me.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/animate.me.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions dist/animate.me.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "animateme",
"version": "2.2.0",
"version": "2.3.0",
"description": "Animate DOM elements when they enter the viewport",
"main": "dist/animate.me.min.js",
"style": "dist/animate.me.css",
Expand Down Expand Up @@ -38,6 +38,6 @@
"devDependencies": {
"jsmin": "1.0.1",
"release-it": "14.11.5",
"typescript": "4.3.5"
"typescript": "4.4.2"
}
}
3 changes: 1 addition & 2 deletions src/animate.me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class AnimateMe {

this.setElements();

// prettier-ignore
this.isTouchDevice = 'ontouchstart' in this.win || navigator.msMaxTouchPoints > 0 || navigator.maxTouchPoints > 0;
this.isTouchDevice = 'ontouchstart' in this.win || navigator.maxTouchPoints > 0;

this.setCurrentScroll();
this.setWindowDimensions();
Expand Down
Loading

1 comment on commit a4401d8

@vercel
Copy link

@vercel vercel bot commented on a4401d8 Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.