Skip to content

use PointerEvents instead of mouse events so we can use setPointerCapture #899

Description

@leon

Component your feature request relates to

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • SFU
  • This repo

Problem your feature solves? Please describe.

#848
#349

There was a recent PR merge which was supposed to solve the problem of tracking the mouse while outside the window / viewport.
but it did not solve it, because to track the mouse outside the browser window you need to use the native pointer events setPointerCapture passing in the pointerId.

Describe the solution you'd like
I did a test implementation where we go over to use pointer events in the MouseControllerHovering

master...leon:PixelStreamingInfrastructure:pointerevents-with-capture

I think this could solve the problem.
pointer events is a drop in replacement for mouse and touch, but since we are handling the touch events separatly, I made this one to only work with mouse and pen.

So give it a go an see what you think :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions