Follow-up to #3611792 (graphical seat-map picker).

The map pan handling calls viewport.setPointerCapture() on pointerdown so a drag started on the map keeps receiving pointer events when the cursor leaves the viewport. But capturing the pointer on pointerdown prevents the following click event from reaching the seat button in Chrome, so clicking a seat does nothing and no booking happens.

Fix: drop setPointerCapture() and instead listen for pointerup and pointercancel on the window, so a release outside the viewport still ends the drag while the click still reaches the seat. The existing "no button pressed" guard on pointermove is kept as a further safety net.

Issue fork yoyaku-3611882

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

  • mably committed d5843db2 on 1.x
    fix: #3611882 Graphical seat map: clicking a seat no longer books it (...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.