Giter Site home page Giter Site logo

Comments (18)

bcardarella avatar bcardarella commented on August 17, 2024 1

I recommended https://github.com/ef4/memory-scroll

from ember-router-scroll.

sebastianhelbig avatar sebastianhelbig commented on August 17, 2024

I am asking myself the same question. Seems it is in ember, but need to be enabled somehow. How?

from ember-router-scroll.

maxscott avatar maxscott commented on August 17, 2024

x-posted in ember core

from ember-router-scroll.

rwjblue avatar rwjblue commented on August 17, 2024

Yes, this addon is still needed. The RFC to Ember simply made this addons job a tad bit easier (and allowed it to rely on only public APIs). Specifically, I believe that step 3 in the usage instructions on the README is no longer needed with Ember 2.13.

@bcardarella and/or @briangonzalez can y'all confirm?

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

The Location can be deprecated but the Service is still necesarry

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

and the router mixin is still necessary

from ember-router-scroll.

maxscott avatar maxscott commented on August 17, 2024

Using version 0.2.0 and ember 2.13.3, I can't get this working at all yet.

I ember install'ed, Router mixin'ed, and (progressively, to test) added the two environment.js lines. To no avail, not sure if I'm just missing something--will try to post example repo later if I can't sort it out.

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

@rwjblue I believe 2.14 is when the feature flag drops. It is still there for 2.13: https://github.com/emberjs/ember.js/blob/v2.13.3/packages/ember-routing/lib/location/history_location.js#L19

from ember-router-scroll.

maxscott avatar maxscott commented on August 17, 2024

That makes sense, I got thrown by the "until released in 2.13" bit. Referring to ember-source, I can't use the feature flags, but when I bump to "ember-source": "2.14.0-beta.3", I'm still not getting any results. Do the story/instructions change in 2.14?

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

The only difference that should be necessary in 2.14 will be not having to change your location type in config/environment.js

from ember-router-scroll.

maxscott avatar maxscott commented on August 17, 2024

Gotcha. Still nada when I go back to auto, but I'm gonna assume I have some environmental issue going on and try this on a new app before I continue to pester here. Thanks for the heads up(s) 👍

from ember-router-scroll.

rwjblue avatar rwjblue commented on August 17, 2024

@bcardarella - I didn't strip the conditional in the source until later, but the feature is enabled in 2.13.

screenshot

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

Re: @maxwerr's issue. I just SH'd with him and there appears to be something else at play. The window.scrollY value never changes. I suspect the scrolling is within a container div with an overflow allowed and not changing the actual window height. This won't work with ember-router-scroll

from ember-router-scroll.

briangonzalez avatar briangonzalez commented on August 17, 2024

@bcardarella @rwjblue

If I understand correctly, this repo should be fixed up with?

  • Keep service and mixin
  • Remove location
  • Major version bump
  • Fix tests

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

@briangonzalez I would recommend a deprecation in the location for the time being that detects the Ember version. >= 2.13 display deprecation that recommends keeping the location as auto or history. This way upgrades won't break.

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

Post major version bump location can be dropped

from ember-router-scroll.

briangonzalez avatar briangonzalez commented on August 17, 2024

Thoughts on publishing them in tandem? This addon is currently at 0.2.0

  • 0.2.0 -> 0.3.0 deprecation warning for location
  • 0.2.0 -> 1.0.0 location removed

from ember-router-scroll.

bcardarella avatar bcardarella commented on August 17, 2024

Seems good to me!

from ember-router-scroll.

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.