The processSlider function is called whenever a slider starts to move using the 'slide' event then a timeout is created and if the 'slider' event is triggered within 600 ms then the facets do net get updated.

I find this functionality somewhat difficult to use because if the user stops sliding the slider and holds the mouse button and then the moves the slider after 600 ms then
the facets update. Since the user is still holding the mouse button down the slider continues to slide with the user. After the ajax update the slider pops back to the position is was in when the ajax update request was started.

I propose to update the facets on the slider 'stop' event. That way the facets only update after the user has let go of the mouse button.

CommentFileSizeAuthor
#2 range-slider-stop-2829195-2.patch2.44 KBmonstrfolk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

monstrfolk created an issue. See original summary.

monstrfolk’s picture

monstrfolk’s picture

Status: Active » Needs review

eugene.ilyin’s picture

Great idea! Thank you. Committed.

eugene.ilyin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.