2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

fhemweb.js: do not resend slider value on keypress (Forum #50807)

git-svn-id: https://svn.fhem.de/fhem/trunk@11063 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-03-13 19:47:31 +00:00
parent b2711fb9e1
commit a398474322

View File

@ -868,8 +868,10 @@ FW_createSlider(elName, devName, vArr, currVal, set, params, cmd)
}
$(newEl).keydown(function(e){
if(e.keyCode == 37) currVal -= stp;
if(e.keyCode == 39) currVal += stp;
if(e.keyCode == 37) currVal -= stp;
else if(e.keyCode == 39) currVal += stp;
else return;
if(currVal < min) currVal = min;
if(currVal > max) currVal = max;
offX = (currVal-min)*maxX/(max-min);