Coder Social home page Coder Social logo

Comments (4)

PaNaVTEC avatar PaNaVTEC commented on July 17, 2024

Sorry to hear that, I will provide a solution. Thanks for using it 👍

from drawableview.

Odaym avatar Odaym commented on July 17, 2024

Ok this is a definite bug that I've just discovered, the issue with the scratch mentioned above is due to trying to draw while dragging your finger horizontally. There is no way to start drawing if you drag your finger horizontally on the view, it always cuts off and you have to try again and it will cut off again. Whenever I try to draw while dragging finger vertically or diagonally, works every time.

I've tried this on Nexus 5, glad it wasn't some random bug or something untrackable

from drawableview.

PaNaVTEC avatar PaNaVTEC commented on July 17, 2024

@Odaym Tell me what configuration are you using please, I can't reproduce it. If you set 0 and 0 as min/max on zoom the issue is addressed but is ok, the view is scaling to 0 so if you don't want zoom, you need to setup with 1/1. I will fix later. But what I can't reproduce is setting 1/3 my draw after zoom in/out is still on the screen and I can continue drawing. Please send me the configuration. mine was:

config.setStrokeColor(getResources().getColor(android.R.color.black));
    config.setStrokeWidth(20.0f);
    config.setMinZoom(1.0f);
    config.setMaxZoom(3.0f);
    config.setCanvasHeight(4000);
    config.setCanvasWidth(4000);

I have tried Nexus 7 (last) and Nexus 6.

Thanks

from drawableview.

Odaym avatar Odaym commented on July 17, 2024

You are definitely correct about setting Max/Min Zoom levels to be 1 and 1 respectively, this stops any zooming and resolves the problem. Thanks for clearing that up.

I will close this and open the horizontal drawing issue as a separate issue.

from drawableview.

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.