2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

fhemweb.js: fix slider for smallscreenCommands (Forum #35846)

git-svn-id: https://svn.fhem.de/fhem/trunk@8383 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-04-06 09:55:16 +00:00
parent 6e1ea06ff2
commit 381236795d

View File

@ -755,6 +755,8 @@ FW_createSlider(elName, devName, vArr, currVal, set, params, cmd)
function
mouseMove(e)
{
if(maxX == 0) // Forum #35846
maxX = slider.offsetWidth-sh.offsetWidth;
var diff = e.clientX-lastX; lastX = e.clientX;
offX += diff;
if(offX < 0) offX = 0;