mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
dont cancel following events
This commit is contained in:
parent
17e5893dde
commit
a8b96a9206
1 changed files with 4 additions and 4 deletions
|
@ -141,7 +141,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
|
|
||||||
// UI Hooks
|
// UI Hooks
|
||||||
// curves
|
// curves
|
||||||
$('.tunings .throttle input').on('input', function () {
|
$('.tunings .throttle input').on('input change', function () {
|
||||||
var throttleMidE = $('.tunings .throttle input[name="mid"]'),
|
var throttleMidE = $('.tunings .throttle input[name="mid"]'),
|
||||||
throttleExpoE = $('.tunings .throttle input[name="expo"]'),
|
throttleExpoE = $('.tunings .throttle input[name="expo"]'),
|
||||||
mid = parseFloat(throttleMidE.val()),
|
mid = parseFloat(throttleMidE.val()),
|
||||||
|
@ -156,7 +156,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
expo <= parseFloat(throttleExpoE.prop('max'))) {
|
expo <= parseFloat(throttleExpoE.prop('max'))) {
|
||||||
// continue
|
// continue
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// math magic by englishman
|
// math magic by englishman
|
||||||
|
@ -178,7 +178,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
context.stroke();
|
context.stroke();
|
||||||
}).trigger('input');
|
}).trigger('input');
|
||||||
|
|
||||||
$('.tunings .rate input').on('input', function () {
|
$('.tunings .rate input').on('input change', function () {
|
||||||
var rateE = $('.tunings .rate input[name="rate"]'),
|
var rateE = $('.tunings .rate input[name="rate"]'),
|
||||||
expoE = $('.tunings .rate input[name="expo"]'),
|
expoE = $('.tunings .rate input[name="expo"]'),
|
||||||
rate = parseFloat(rateE.val()),
|
rate = parseFloat(rateE.val()),
|
||||||
|
@ -193,7 +193,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
expo <= parseFloat(expoE.prop('max'))) {
|
expo <= parseFloat(expoE.prop('max'))) {
|
||||||
// continue
|
// continue
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// math magic by englishman
|
// math magic by englishman
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue