Skip to content

Commit

Permalink
Core: Fix JS error. Closes #699
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Oct 9, 2018
1 parent 25b3917 commit af1ad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ http://www.opensource.org/licenses/mit-license.php
if (o.useWheel && base.wheel) {
// get keys from other layers/keysets (shift, alt, meta, etc) that line up by data-position
// target mousewheel selected key
$key = last.wheel_$Keys && last.wheelIndex > -1 ? last.wheel_$Keys.eq(last.wheelIndex) : $key;
$key = last.wheel_$Keys.length && last.wheelIndex > -1 ? last.wheel_$Keys.eq(last.wheelIndex) : $key;
}
action = $key.attr('data-action');
if (timer - (last.eventTime || 0) < o.preventDoubleEventTime) {
Expand Down

0 comments on commit af1ad45

Please sign in to comment.