Giter Site home page Giter Site logo

Comments (7)

dmvaldman avatar dmvaldman commented on May 29, 2024

Have you tried putting a scrollview inside a scrollview, like `

scrollview.sequenceFrom([innerScroll1, innersScroll2])

Or did you mean native scrolling, which is also possible.

from famous.

marcvdm avatar marcvdm commented on May 29, 2024

i mean something like NativeView/WebView where you can put ordinary html/javascript in.

Then the NativeView/WebView would have scrolling like a native browser would have.

Currently you cannot touchmove a div with overflow: scroll because in the Engine.js it prevents the touchmove event.

from famous.

dcsan avatar dcsan commented on May 29, 2024

related https://github.com/Famous/views/issues/45

from famous.

MylesBorins avatar MylesBorins commented on May 29, 2024

@wgester since you are the current scroll view master in residence I think you should take the lead on this.

from famous.

wgester avatar wgester commented on May 29, 2024

There's a potential fix in the works. If you clone down current famous and comment out the following in the initialize function inside of Engine.js

window.addEventListener('touchmove', function(event) {
    event.preventDefault();
}, true);

and replace this.eventForwarder in ElementOutput.js with the following function

this.eventForwarder = function eventForwarder(event) {
    this._eventOutput.emit(event.type, event);
    event.preventDefault();
}.bind(this);

you should be able to scroll overflow: scroll surfaces without any side effects. Let me know if this fixes your issue.

from famous.

MylesBorins avatar MylesBorins commented on May 29, 2024

I believe this fix landed as part of the scrollview fixes in The 0.3.0 alpha

from famous.

jacksenechal avatar jacksenechal commented on May 29, 2024

@thealphanerd can you elaborate on the fix that you referenced for scrollview? I don't see the overflow: scroll fix suggested above in the 0.3.x code so I assume it's got to do with true sizing on surfaces in scrollview or some such thing?

from famous.

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.