Giter VIP home page Giter VIP logo

Comments (6)

bryphe avatar bryphe commented on May 16, 2024 2

It's been kind of an organic process! I'm opening to moving the <FlatList /> over to Revery though 👍

from oni2.

glennsl avatar glennsl commented on May 16, 2024 1

FYI: I'm working on this as part of the menu renovation project.

from oni2.

akinsho avatar akinsho commented on May 16, 2024

for context to anyone looking into this the menu is a <Flatlist/> component which means it only renders the items in view. Revery does have a ScrollView which does come with a scrollbar but that would not work in this case as if list the menu renders is not virtualised (i.e. renders all visible and nonvisible components) this list becomes v. v. slow.

A solution here would be adding the option to render a scrollbar in the menu ?adding it to the virtualised list as a toggleable option?

from oni2.

somebody1234 avatar somebody1234 commented on May 16, 2024

Weird... supposedly FlatList should have showsVerticalScrollIndicator prop as true by default? Do we just have to render the scrollbar (well, that and handle dragging the scrollbar) in the render function then 🤔

from oni2.

CrossR avatar CrossR commented on May 16, 2024

We actually have our own FlatList: https://github.com/onivim/oni2/blob/master/src/editor/UI/FlatList.re

So we'd need to add a similar property to that as well as a bar for it.

from oni2.

somebody1234 avatar somebody1234 commented on May 16, 2024

:/ why do we have our own anyway

from oni2.

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.