servo / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
3.1k stars 276 forks source link

Virtual cursor support #4819

Closed dhavalbc closed 4 months ago

dhavalbc commented 1 year ago

there is no way to enable virtual cursor using webrender. Please consider adding this as a feature.

jrmuizel commented 1 year ago

Can you elaborate what you mean by virtual cursor?

dhavalbc commented 1 year ago

virtual cursor enables us overlay a cursor image on webcontent that is being rendered, this will be helpful for systems that are using webrender as rendering engine(Firefox OS) overlay a cursor image when pointing device is connected. so, webrender can consider adding api to set a cursor image and an api to set x, y coordinates where the cursor has to be rendered. and if this feature is enabled, webrender can overlay the mouse cursor over the webcontent.

QingzhongGuo commented 4 months ago

do we already have progress for this virtual cursor issue?

We use Firefox Gecko engine for OS used in non-touch device. We need enable virtual cursor in browser so that consumer can move the virtual cursor to select different contents by D-PAD

mrobinson commented 4 months ago

Isn't this beyond the scope of WebRender? If your application needs a virtual cursor you can add this to WebRender's display list or move a window over the application itself.

dhavalbc commented 4 months ago

Yes agreed, you can close this request as we have implemented the same.

QingzhongGuo commented 4 months ago

Clear, thanks