import { isTouchEvent } from 'ngx-tethys/util' ; export function getEventWithPoint ( event ) { return isTouchEvent ( event ) ? event . touches [ 0 ] || event . changedTouches [ 0 ] : ( event as MouseEvent ) ; } export function ensureInBounds ( value , boundValue ) { return value ? ( value < boundValue ? value : boundValue ) : boundValue ; }