Giter Site home page Giter Site logo

Comments (10)

Fishrock123 avatar Fishrock123 commented on July 17, 2024

Funnily enough, the eraser tip works perfectly.

from mondrian.

artursapek avatar artursapek commented on July 17, 2024

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.

Fishrock123 avatar Fishrock123 commented on July 17, 2024

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.

artursapek avatar artursapek commented on July 17, 2024

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.

Fishrock123 avatar Fishrock123 commented on July 17, 2024

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.

artursapek avatar artursapek commented on July 17, 2024

How do you know it's the drag support? Were you able to fix it by disabling some code?

from mondrian.

Fishrock123 avatar Fishrock123 commented on July 17, 2024

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.

artursapek avatar artursapek commented on July 17, 2024

Oh, I get it. Yes. "Clicks" in Mondrian are:

  1. Mouse down
  2. 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.

tomByrer avatar tomByrer commented on July 17, 2024

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.

artursapek avatar artursapek commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.