Comments (4)
Currently mobile support isn't really in scope, I'm sorry to say. To do it well would require significant design and development work, which I don't think I can take on.
from quicksilver.
Yeah, that's understandable. How about double-clicks? :)
from quicksilver.
how do you want quicksilver to handle them?
If it is done like any other event, then should the first click still be registered as a click, or should that even be fired as normal? What about the second? Should that only cause the "double click" event or also the normal click event?
Or do you rather have a seperate struct that you configure with the maximum time between clicks and has a method that takes a reference to the click event and tells you whether it is a double click?
If the separate struct is good enough then I can probably open a pull request in a few days. Just want to know if that is useful, if it would be accepted, etc, etc before I start working on it.
from quicksilver.
I would be happy with any of the things you suggested, but I suspect people writing games wouldn't want the first click to be paused for an arbitrary amount of time, so perhaps the first click should fire as normal, and then the second would fire as a double-click event (along with another normal click event, for backwards compatibility)?
I'm a little hesitant to suggest we follow what JavaScript does 😉, but the MDN page says:
The MouseEvent object passed into the event handler for click has its detail property set to the number of times the target was clicked. In other words, detail will be 2 for a double-click, 3 for triple-click, and so forth. This counter resets after a short interval without any clicks occurring; the specifics of how long that interval is may vary from browser to browser and across platforms. The interval is also likely to be affected by user preferences; for example, accessibility options may extend this interval to make it easier to perform multiple clicks with adaptive interfaces.
which seems reasonable to my not-particularly-advanced eyes…
from quicksilver.
Related Issues (20)
- Use try_init() for logging HOT 1
- stdweb works but web-sys does not HOT 3
- There should be an option to resize the canvas along with the browser window HOT 10
- Are subimages still a thing? HOT 3
- Rendering to surfaces also renders to regular window? HOT 2
- Rendering to surface is upside down HOT 2
- event loop iterates slowly HOT 4
- Text extents says y size is 0 HOT 3
- How to get release key event HOT 1
- Pointer state location is always (0,0) HOT 2
- Crash when attempting to load font in the web + wasm_bindgen context
- Line width and end-cap options for `draw_mesh`. HOT 2
- Settings icon_path doesn't seem to do anything on Web or MacOS? HOT 5
- Derive Debug/Clone for Timer HOT 2
- Graphics screen_to_camera doesn't take translation into account HOT 5
- Add a way to inject events into the stream. HOT 3
- Document a workflow for building and deploying with wasm-bindgen
- Deprecate stdweb and migrate to web-sys HOT 4
- Large binaries
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 quicksilver.