! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Indicated value jumps down after adjusting
Status:
RESOLVED: FIXED
Product:
Xfce4-generic-slider
Component:
general

Comments

Description emoryy 2013-11-10 19:23:09 CET
I noticed that when adjusting the slider with the mouse (either with clicking or with the mouse wheel) after a little delay the value jumps down a bit.

The jump doesn't occur:

a) when the settings window of the applet is open
b) the max value is set
c) the "synchronize with this command" input field is empty

I recorded a video of the phenomenon: https://drive.google.com/file/d/0Bx4pY_f8XPaEanY1aHVHOXlSM2c/edit?usp=sharing

Also out of curiosity I tried to give
"echo %v" as adjusting command, and
"echo 50" as synchronize command.

What happens is that the slider jumps to a fixed value of "46".
So it's lower by 4 than what it should be.
If I give "echo 100", then the displayed value is 100.
But with "echo 99" it goes down by 4 to 95 again.
Comment 1 Connor Behan 2013-11-12 23:43:51 CET
Thanks a lot. This should be fixed in git. The problem was that I misunderstood how two digit numbers were read from the output of a process. I thought it went <first digit>, <second digit>, EOF but it actually goes <first digit>, <second digit>, LF.
Comment 2 emoryy 2013-11-14 19:39:37 CET
(In reply to Connor Behan from comment #1)
> Thanks a lot. This should be fixed in git. The problem was that I
> misunderstood how two digit numbers were read from the output of a process.
> I thought it went <first digit>, <second digit>, EOF but it actually goes
> <first digit>, <second digit>, LF.

Thanks! It is indeed better now.

However I must say, that there is still a little jump on the slider after clicking on it. The numeric value is correct, but the slider still goes down one pixel. This happens around 75% of the times.
Comment 3 Connor Behan 2013-11-14 23:49:36 CET
(In reply to emoryy from comment #2)
> However I must say, that there is still a little jump on the slider after
> clicking on it. The numeric value is correct, but the slider still goes down
> one pixel. This happens around 75% of the times.

That makes sense though. If you configure the plugin to accept values out of 100, you can still drag the slider to 50.5% which needs to be rounded.

Bug #10480

Reported by:
emoryy
Reported on: 2013-11-10
Last modified on: 2013-11-14

People

Assignee:
Connor Behan
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information