Merge pull request #44 from mbebenita/zoom

Cursor fixes.
This commit is contained in:
Patrick Walton 2017-10-30 15:31:27 -07:00 committed by GitHub
commit 2717ac12cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -106,9 +106,11 @@ button > svg path {
}
#pf-canvas.pf-draggable {
cursor: grab;
cursor: -webkit-grab;
}
#pf-canvas.pf-draggable.pf-grabbing {
cursor: grabbing;
cursor: -webkit-grabbing;
}
#pf-fps-label {
color: white;

View File

@ -8,7 +8,7 @@
</head>
<body class="pf-unscrollable">
{{>partials/navbar.html isTool=true}}
<canvas id="pf-canvas" width="400" height="300"></canvas>
<canvas id="pf-canvas" class="pf-draggable" width="400" height="300"></canvas>
<svg id="pf-svg" xmlns="http://www.w3.org/2000/svg" width="400" height="300"></svg>
<div class="fixed-bottom mb-3 d-flex justify-content-end align-items-end pf-pointer-events-none">
<div id="pf-toolbar">