Skip to content

Commit e116a9b

Browse files
committed
Update cursor
1 parent 30f6230 commit e116a9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app/(main)/community/events/map/engine.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const ACTIVE_TRANSITION_MS = 100
5353
* Per-frame damping factor (scaled by dt / (1/60s)).
5454
* Decrease value to increase damping.
5555
*/
56-
const INERTIA_DAMPING = 0.87
56+
const INERTIA_DAMPING = 0.92
5757
/** Reference frame time in milliseconds for the damping exponent. */
5858
const INERTIA_BASE_DT = 1000 / 60
5959
/** Velocities below this normalized threshold snap directly to zero. */
@@ -536,9 +536,12 @@ class MapEngine implements MapHandle {
536536
if (!this.pointer.active || event.pointerId !== this.pointer.id) return
537537
this.pointer.active = false
538538
this.canvas.releasePointerCapture(event.pointerId)
539+
this.canvas.style.cursor = "default"
539540
this.pointer.lastMoveTime = 0
540541
if (event.type === "pointerup") {
541542
this.updateHoveredMarkerFromClient(event.clientX, event.clientY)
543+
} else {
544+
this.updateCursor()
542545
}
543546
}
544547

src/app/(main)/community/events/meetups-map.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ export function MeetupsMap() {
158158
onPointerMove={handlePointerMove}
159159
onPointerLeave={handlePointerLeave}
160160
onClick={handleMapClick}
161-
style={{ cursor: activeMeetup ? "pointer" : "default" }}
162161
>
163162
<canvas
164163
ref={canvasRef}

0 commit comments

Comments
 (0)