Skip to content

Commit 157c412

Browse files
author
Jonas Gossens
committed
🚨 Fix eslint error
1 parent 63765f2 commit 157c412

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/react-chayns-gallery/component/Gallery.jsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ export default class Gallery extends Component {
158158
this.selectedElement.classList.remove('cc__gallery__image--active');
159159
}
160160
// Enable scrolling.
161-
document.ontouchmove = function (e) {
162-
return true;
163-
};
161+
document.ontouchmove = () => true;
164162
};
165163

166164
render() {

0 commit comments

Comments
 (0)