Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on May 28, 2024 1

What @Gowsky is referring to is that if you place your finger in an area not occupied by a chart (such as the empty space between two cards) and then swipe, you should be able to trigger a scroll. The charts consume all vertical swipes at the moment, but we’ll be looking into improving this.

from vico.

 avatar commented on May 28, 2024 1

As a workaround, you could set isZoomEnabled to false. It looks like the zoom logic is what’s causing vertical swipes to be consumed. I’ve just resolved this bug.

from vico.

Gowsky avatar Gowsky commented on May 28, 2024

Hi @parrotcar00!
Your list is cut-off because of 0.8f in your fillMaxHeight Modifier.
The inability to scroll is caused by one of gestures Modifiers that are applied by Vico that steal touch events from scrollable Column. We'll need to take a look on how to improve that. You can still perform scrolling by starting the scroll in area not taken by charts.

from vico.

parrotcar00 avatar parrotcar00 commented on May 28, 2024

If I remove the line .fillMaxHeight(0.8f) altogether, I get a little bit more of the chart but it's still not scrollable.

You can still perform scrolling by starting the scroll in area not taken by charts.

Can you expand more on this or any example?

from vico.

parrotcar00 avatar parrotcar00 commented on May 28, 2024

Got it, I'll try that.
Also, in the meantime, is there any way to disable all gestures in Chart area? I'm trying to think of a workaround?

If the charts are the main item inside a card, it'll be hard to keep the user from expecting to scroll while touching the chart. Maybe I can disable all gestures on Chart?

from vico.

parrotcar00 avatar parrotcar00 commented on May 28, 2024

As a workaround, you could set isZoomEnabled to false. It looks like the zoom logic is what’s causing vertical swipes to be consumed. I’ve just corrected this bug.

Can confirm, setting isZoomEnabled = false on the Chart makes the list scrollable.

from vico.

 avatar commented on May 28, 2024

Hello! As of Vico 1.5.1, which is now available, charts no longer consume vertical swipes. You should be able to change isZoomEnabled back to true without any impact to the scrolling behavior.

from vico.

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.