You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is some confusion about what a "floor" is. Ascensor treats all elements on the same x axis as being on the same floor.
e.g. if we have 4 pages as follows (pure horizontal navigation):
[1,0]
[1,1]
[1,2] <--- e.g. this is the current page, current index
[1,3]
ascensor reports that all of these pages would be activeFloor = 1, or "current-floor" =1.
This is good for some situations, but i would like to see a property that returns the "page" or activeIndex that we're currently on. In the example above, we are on the 3rd page, ascensor should return 3 (or 2 if it's zero-based) for this new activeIndex property.
Why?
The floor.from and floor.to properties in StartScroll and ScrollEnd report that all these pages are on the same floor as well, so you can never trap page change events that happen on the same "floor".
Unless i'm missing something, I suggest we need a new property activeIndex.
thanks.
The text was updated successfully, but these errors were encountered:
I think there is some confusion about what a "floor" is. Ascensor treats all elements on the same x axis as being on the same floor.
e.g. if we have 4 pages as follows (pure horizontal navigation):
[1,0]
[1,1]
[1,2] <--- e.g. this is the current page, current index
[1,3]
ascensor reports that all of these pages would be activeFloor = 1, or "current-floor" =1.
This is good for some situations, but i would like to see a property that returns the "page" or activeIndex that we're currently on. In the example above, we are on the 3rd page, ascensor should return 3 (or 2 if it's zero-based) for this new activeIndex property.
Why?
The floor.from and floor.to properties in StartScroll and ScrollEnd report that all these pages are on the same floor as well, so you can never trap page change events that happen on the same "floor".
Unless i'm missing something, I suggest we need a new property activeIndex.
thanks.
The text was updated successfully, but these errors were encountered: