Comments (3)
- it's modifying the DOM adding a style property, but it's not allowing to remove it (something like "reset_cursor_icon" or "remove_cursor_icon")
Making CursorIcon::Default
remove the cursor style is probably the way to go. Though it would be best if we can figure out how to make this behave the same cross-platform, e.g. does Default
fall back to the default cursor on other backends as well? If it does, shouldn't we add a Cursor
one as well then?
I will ask around and then open a separate issue.
- it's missing some possible values, so adding them could work as well.
It would be best if you point out exactly what you are missing so we can figure out if its covered by other backends as well or if its a Web-only thing.
NB: I can help, but I don't know the main vision so I don't want to implement something that's not going to be accepted (especially since the new 0.30 revamp).
We have to figure out first how we want to proceed before doing any implementation.
from winit.
What would you want Winit to do here?
You can use !important
to overwrite Winit, after all Winit itself isn't doing anything special, just adding CSS directly to the element.
I'm going to close this as not really actionable, but please feel free to make a suggestion here if you have one.
from winit.
I think one of these 2 solutions could really help:
- it's modifying the DOM adding a style property, but it's not allowing to remove it (something like "reset_cursor_icon" or "remove_cursor_icon")
- it's missing some possible values, so adding them could work as well.
Even if we can set !important
on the parent, this doesn't seem the proper solution.
IMHO implementing both the above missing parts would be the perfect and more robust solution.
NB: I can help, but I don't know the main vision so I don't want to implement something that's not going to be accepted (especially since the new 0.30 revamp).
from winit.
Related Issues (20)
- winit 0.30 panics on exit on macOS HOT 1
- Custom cursor (from_rgba) set in response to non-CursorMoved event leads to "already borrowed" panic when resizing HOT 2
- Reintroduce ability to query use of X11 or Wayland as backend on raw `EventLoop` HOT 1
- SSH X11 forwarding seemed to be unsupported HOT 5
- Window does not close under specific conditions. HOT 1
- MacOS scaled resolution possibly increases memory usage HOT 2
- Application panics when reading `Window::inner_size` after X server has terminated (e.g.: on user log-out) HOT 4
- Rapid cursor movement causes frame loss HOT 5
- Semantics of getters/setters and events? HOT 5
- Keys leak through on window focus change (alt+tab) HOT 2
- Error handling on `ApplicationHandler` HOT 7
- Possible solution to keep created surface consistent HOT 5
- with_decorations(false) renders titlebar after click HOT 1
- Cross-platform inconsistency in `ApplicationHandler::resumed()` HOT 3
- Softbuffer 0.4.3 fail (Visual 0x78 does not use softbuffer's pixel format and is unsupported) HOT 2
- doc: pre_present_notify feature is not documented in FEATURES.md HOT 4
- Panics if requesting a new size from the inner_size_writer inside the `WindowEvent::ScaleFactorChanged`
- Pinching on touchpad fires Ctrl key press event
- iOS: Processing non `RedrawRequested` event after the main event loop: AboutToWait HOT 13
- `EventLoopProxy::send_event` executes user events immediately in microtasks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winit.