react-sortable-hoc
Advanced tools
Comparing version 0.8.1 to 0.8.2
Changelog | ||
------------ | ||
### 0.8.2 | ||
- Fix: TouchEvent is undefined in certain browsers, such as Safari [#382](https://github.com/clauderic/react-sortable-hoc/issues/382) | ||
### 0.8.1 | ||
@@ -4,0 +7,0 @@ - Fix scrolling issues on mobile with anchor tag elements [#380](https://github.com/clauderic/react-sortable-hoc/pull/380) |
@@ -131,3 +131,3 @@ 'use strict'; | ||
function isTouchEvent(event) { | ||
return event instanceof TouchEvent || event.touches && event.touches.length || event.changedTouches && event.changedTouches.length; | ||
return event instanceof window.TouchEvent || event.touches && event.touches.length || event.changedTouches && event.changedTouches.length; | ||
} | ||
@@ -134,0 +134,0 @@ |
@@ -111,3 +111,3 @@ import _Object$keys from 'babel-runtime/core-js/object/keys'; | ||
export function isTouchEvent(event) { | ||
return event instanceof TouchEvent || event.touches && event.touches.length || event.changedTouches && event.changedTouches.length; | ||
return event instanceof window.TouchEvent || event.touches && event.touches.length || event.changedTouches && event.changedTouches.length; | ||
} | ||
@@ -114,0 +114,0 @@ |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1083933