Comments (10)
Funnily enough, the eraser tip works perfectly.
from mondrian.
Hahah. It seems like a hardware problem. Does the tablet's pen tip act as a mouse on other websites? I used to have an Intuos and I remember the computer just thinking it was a mouse.
from mondrian.
Yes, without a special extension to the browser, it will.
I have been fooling around with event listeners for the past couple minutes and it seems to be recognized as a normal mouse.
from mondrian.
I have no idea, sorry. Don't have a way to try it myself.
If you figure out the problem you could fix it and open a PR. The code having to do with the cursor is here. It's a class that keeps the state of the cursor to achieve things like dragging and double-clicking. I may have done something to break your tablet there, but again if the computer just thinks it's a mouse I don't understand what would cause your mouse to work and your tablet to not.
from mondrian.
Ok, I'm pretty sure a lot of this issue is caused by wonky double-click support. Still investigating.
Edit: Nope, it's the drag support that is messing with it.
An "easy" way to deal with this may be to disable drag support unless the tool uses it.
from mondrian.
How do you know it's the drag support? Were you able to fix it by disabling some code?
from mondrian.
Dragging blocks clicks, and logging showed it was firing drag events.
This could probably be fixed by widening the minimum drag distance, or something.
from mondrian.
Oh, I get it. Yes. "Clicks" in Mondrian are:
- Mouse down
- Mouse up iff the mouse has not changed position
So your problem is it's hard to push down with a stylus without moving it at all.
I think you're right on. A minimum drag distance (2-3px) could help for tools that don't require dragging. You could also implement a slightly higher threshold for tools that don't need dragging.
This would obviously take some testing and adjusting. Since you're the one with the Intuos, if you get something working that feels good to you, I'd love to see it in a PR. :)
from mondrian.
On my Sprint Samsung Note 2, I can open the webpage, open menu items, select boxes on the left, but can not 'draw'.
from mondrian.
You need to drag to draw, and dragging on phones is scrolling. There might be a way to get around this with JavaScript, but I don't have a tablet to test on yet.
from mondrian.
Related Issues (20)
- Create application manifest HOT 30
- Update to latest jQuery 2.x or Zepto (or drop it completely) HOT 6
- Better smoothing of crayon points. HOT 5
- Disable Context Menu
- Color picker should constrain colors to the visible window HOT 5
- Needs a way to restrict angles HOT 1
- Show tooltips when hovering the tool icons HOT 6
- 'Ctrl+Z' should undo the changes HOT 1
- Speed up Coffeescript compilation HOT 1
- Numerical keypad (external apple keyboard) does not allow me to input values HOT 3
- Drop dependence on jQuery? HOT 6
- snap to grid HOT 2
- SVG-edit HOT 5
- Cannot build styles. HOT 4
- App cache development issues. HOT 8
- Master build.js init error. HOT 5
- SVG File Import crashes browser HOT 4
- Is There a Pre-Built Package available, yet? HOT 3
- Support Google Fonts
- "Class BuildShell could not be loaded" 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 mondrian.