Skip to content

Commit

Permalink
Simplify handle selection for dragAll
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Aug 14, 2021
1 parent ebbb155 commit 73ec3d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/nouislider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2378,11 +2378,7 @@ function scope(target: TargetElement, options: ParsedOptions, originalOptions: O

if (behaviour.dragAll) {
handlesToDrag = scope_Handles;
handleNumbersToDrag = [0];

while (handleNumbersToDrag.length < scope_Handles.length) {
handleNumbersToDrag.push(handleNumbersToDrag.length);
}
handleNumbersToDrag = scope_HandleNumbers;
}

eventHolders.forEach(function(eventHolder) {
Expand Down

0 comments on commit 73ec3d0

Please sign in to comment.