Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have error #29

Open
javarv87 opened this issue Dec 30, 2015 · 4 comments
Open

I have error #29

javarv87 opened this issue Dec 30, 2015 · 4 comments

Comments

@javarv87
Copy link

Uncaught TypeError: Cannot read property 'scrollTop' of undefined 278
I use ion-side-menus with only header

@correasebastian
Copy link

same error here, using ionic serve, everything works fine, but is not working running on the phone (samsung galaxy prime );
i got this :Cannot read property 'scrollTop' of undefined

using the debugger the e object has this properties only:

bubbles: false
cancelBubble: false
cancelable: false
clipboardData: undefined
currentTarget: ion-content.scroll-content.ionic-scroll.overflow-scroll.has-header.has-tabs
defaultPrevented: false
eventPhase: 2
isDefaultPrevented: function () {
isImmediatePropagationStopped: function () {
returnValue: true
srcElement: ion-content.scroll-content.ionic-scroll.overflow-scroll.has-header.has-tabs
stopImmediatePropagation: function () {
target: ion-content.scroll-content.ionic-scroll.overflow-scroll.has-header.has-tabs
timeStamp: 1456705478877
type: "scroll"

github repo : https://github.com/correasebastian/shrink/

@correasebastian
Copy link

i got an answer, if you are using ionic > 1.2.0 nativescroll is the default scroll, so. in order to make "scroll sista" works you have to enable jsScrolling . this way

yourmodule.config(function($ionicConfigProvider) { //jsScroll enabling $ionicConfigProvider.scrolling.jsScrolling(true)})

@correasebastian
Copy link

this is a working example

https://github.com/correasebastian/shrink/

@tsuiwwwayne
Copy link

Hi,

I have tried using scroll-vista on my own app, but it does not work.
@correasebastian I loaded ur repo and tried it, it works.

I planted console.log messages inside the ionic.scroll.sista.js translateY function in both the shrink repo and my own app.

In my own app, the scroll event only executed once, when the page loads. Whereas in the shrink repo, the scroll event is executed whenever I scroll.

Does anyone know what's the issue here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants