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:
parent
6e1ea06ff2
commit
381236795d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user