Bug Tracker

Modify

Ticket #2679 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

slider performance problem

Reported by: therve Owned by: joern
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

Using latest version of UI (1.5b2), I have seen a big performance problem with the slider: moving it feels really sluggish.

I have profiled the script and most of the time is spent in the css function. It seems this is called by handleSize for each mouse move (it calls outerWidth/outerHeight).

I don't know all the corner cases, but this width is fixed for me so it's totally useless to calculate it each time. This should be cached during initialization, if possible.

Attachments

slide.diff Download (1.7 KB) - added by therve 5 years ago.
Patch fixing my problem

Change History

Changed 5 years ago by therve

Patch fixing my problem

comment:1 Changed 5 years ago by therve

I attached a patch that solved the problem for me.

comment:2 Changed 5 years ago by paul

  • Owner changed from paul to joern

comment:3 Changed 5 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r5400.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.