Skip to content

Commit 3abf44a

Browse files
authored
2 parents c680b8c + 473ba87 commit 3abf44a

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/github-pages.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: pages
2+
on:
3+
pull_request:
4+
branches: [master]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: work around permission issue
11+
run: git config --global --add safe.directory /github/workspace
12+
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "16.x"
17+
18+
- name: install dependencies
19+
run: |
20+
npm ci
21+
npm run build
22+
23+
- name: generate docs
24+
run: |
25+
cd docs/
26+
npm install
27+
npm run build
28+
29+
- name: init new repo in dist folder and commit generated files
30+
run: |
31+
cd docs/src/.vuepress/dist
32+
git init
33+
git add -A
34+
git config --local user.email "action@github.com"
35+
git config --local user.name "GitHub Action"
36+
git commit -m 'deploy'
37+
38+
- name: force push to destination branch
39+
uses: ad-m/github-push-action@master
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
branch: gh-pages
43+
force: true
44+
directory: ./docs/src/.vuepress/dist

src/utils/container/mediator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ function handleMouseMoveForContainer ({ clientX, clientY }, orientation = 'verti
355355
}
356356
}
357357
function onMouseMove (event) {
358-
event.preventDefault();
358+
if (event.cancelable) event.preventDefault();
359359
const e = getPointerEvent(event);
360360
if (!draggableInfo) {
361361
initiateDrag(e, Utils.getElementCursor(event.target));

0 commit comments

Comments
 (0)