UNPKG

@better-scroll/core

Version:

Minimalistic core scrolling for BetterScroll, it is pure and tiny

14 lines (12 loc) 344 B
import { TranslaterPoint } from '../translater' export function isSamePoint( startPoint: TranslaterPoint, endPoint: TranslaterPoint ): boolean { // keys of startPoint and endPoint should be equal const keys = Object.keys(startPoint) for (let key of keys) { if (startPoint[key] !== endPoint[key]) return false } return true }