Skip to content

Commit

Permalink
Fix: add PointerEvents polyfill to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Apr 8, 2019
1 parent 4d14a0f commit 841ceea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import startOfWeek from 'date-fns/start_of_week';
// @ts-ignore
import humanizeDuration from 'humanize-duration';
import mapValues from 'lodash/mapValues';
import 'pepjs';
import React, { Fragment, useEffect, useMemo, useState } from 'react';
import CustomProperties from 'react-custom-properties';
import ReactDOM from 'react-dom';
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"description": "",
"homepage": "https://remotelock.github.io/react-week-scheduler/",
"private": false,
"sideEffects": [ "*.css" ],
"sideEffects": [
"*.css"
],
"keywords": [
"calendar",
"time grid",
Expand Down Expand Up @@ -35,7 +37,8 @@
"peerDependencies": {
"react": "^16.8.4",
"react-dom": "^16.8.4",
"resize-observer-polyfill": "^1.5.1"
"resize-observer-polyfill": "^1.5.1",
"pepjs": "^0.5.0"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
Expand Down Expand Up @@ -77,6 +80,7 @@
"npm-run-all": "^4.1.5",
"parcel": "^1.12.0",
"parcel-bundler": "^1.12.2",
"pepjs": "^0.5.0",
"postcss-modules": "^1.4.1",
"prettier": "^1.16.4",
"react": ">=16.8",
Expand Down
1 change: 1 addition & 0 deletions src/components/TimeGridScheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ export const TimeGridScheduler = React.memo(function TimeGridScheduler({
ref={root}
style={style}
onBlur={handleBlur}
touch-action={isDragging ? 'none' : undefined}
className={classcat([
classes.root,
classes.theme,
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8016,6 +8016,11 @@ pbkdf2@^3.0.3:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

pepjs@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/pepjs/-/pepjs-0.5.0.tgz#c335538a009fd1152207f6e8fefb71c3cf716c94"
integrity sha512-c2zQVpj0zfLwpLnt5d2Zi7htPe5us83expDUMSc7TJ2XeI4dzI2crwWjD/SyG3FLWds5XoJwr+WDKmeQcL1DUA==

performance-now@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
Expand Down

0 comments on commit 841ceea

Please sign in to comment.