Opened 15 years ago
Closed 13 years ago
#3193 closed bug (invalid)
Issue using animate
Reported by: | Binary | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | effects | Version: | 1.2.6 |
Keywords: | animate scrollleft | Cc: | Binary, flesler |
Blocked by: | Blocking: |
Description
Scenario: creating a horizontally scrolling image area with buttons to do left/right scrolling.
Here's the section of code that does the animation:
if(direction == "left"){
$(scrollerDiv).animate({'scrollLeft': -scrollerWrapperDiv._thumbWidth + 'px' }, 'slow', , _PV_ScrollImageGalleryUpdateScrollButtons);
} else {
$(scrollerDiv).animate({'scrollLeft': scrollerWrapperDiv._thumbWidth + 'px' }, 'medium', , _PV_ScrollImageGalleryUpdateScrollButtons);
}
If you look at the code, you'll notice that I've had to set the scroll left to 'slow' and the scroll right to 'medium'. This is necessary to make the scrolling work at the same speed! If both calls are set to medium, the left scrolling works faster than the right scrolling.
I'm not sure why this is, but possibly a bug somewhere?
Change History (3)
comment:1 Changed 15 years ago by
Component: | core → fx |
---|---|
need: | Review → Test Case |
comment:2 Changed 15 years ago by
Cc: | Binary flesler added |
---|
Probably not. Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem.