Skip to content

Commit

Permalink
use function shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Jul 29, 2021
1 parent 04c4c50 commit 9714ffc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/src/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,8 @@ class Carousel extends BaseComponent {
}

_addTouchEventListeners() {
const hasPointerPenTouch = event => {
return this._pointerEvent &&
(event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)
}
const hasPointerPenTouch = event => this._pointerEvent &&
(event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)

const start = event => {
if (hasPointerPenTouch(event)) {
Expand Down

0 comments on commit 9714ffc

Please sign in to comment.