Bug Tracker

Ticket #3193 (new bug)

Opened 4 months ago

Last modified 3 months ago

Issue using animate

Reported by: Binary Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.3 Component: fx
Version: 1.2.6 Keywords: animate scrollleft
Cc: Binary, flesler Needs: Test Case

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?

Attachments

Change History

Changed 4 months ago by flesler

  • need changed from Review to Test Case
  • owner deleted
  • component changed from core to fx

Probably not. Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem.

Changed 3 months ago by flesler

  • cc set to Binary, flesler
Note: See TracTickets for help on using tickets.