Giter VIP home page Giter VIP logo

Comments (4)

f3dm76 avatar f3dm76 commented on August 23, 2024

Hello @iankoex, sorry, I'm confused - is this piece of code a proposed change to the lib? I mean, do you want me to include this into project to prevent reloading of the content? Why would you want to prevent content reloading? Would you please specify what problem exactly you are having, what is the desired behaviour, and what is the proposed solution, as is customary.

from popupview.

iankoex avatar iankoex commented on August 23, 2024

If the popup is triggered in a scrollview, the content in this case the scrollview reloads. This makes the scrollview go to the top, offset of zero. The snippet above does not reload the content. The desired behaviour is that when the popup is shown, the scrollview maintains its position(offset).

from popupview.

f3dm76 avatar f3dm76 commented on August 23, 2024

Hey again @iankoex, got your point, however your suggested solution kind of beats the purpose of lazy load - .overlay(sheet()) is called in any case in your scenario. Keeping in mind your described problem, I restructured a little. I included my solution into 1.0.4 release, please give it a go, and do let me know if that didn't fix your problem. Have a great day!

from popupview.

f3dm76 avatar f3dm76 commented on August 23, 2024

Hello @iankoex, it's been a while so I'm gonna this issue, but please do let me know if the problem is not fixed. Have a good day!

from popupview.

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.