Commit 1290c94
authored
Fix OSD level animation lag when using gesture volume control (#13338)
* Fix jerky level animation for small value changes
Fix jerky level animation for small value changes, if level value changes by less than 0.4 do it using new fast constant, set it to zero for now.
the 0.4 is kind of hardcoded as the I wanted the brightness (that jumps by 0.4 on my system) to have the 100ms level animation and all below it 0ms.
* Fix throttling OSD updates for gesture volume change
throttling OSD manager show function calls to prevent event flooding when using gestures for volume control, which too was contributing to some choppiness.
* Update Clutter animation to linear
Updates Clutter animation to linear to make is smooth and lower burstiness of animation.
* passed time arg to _set_volume which I forgot
* add separate level func for gesture
* update clean and minimal code
* gesture: add polling const and UI touchups
add polling const, reset last_time to 0 in begin() and show final volume state after gesture end.
* update: fix indentation
code had auto indented because of editor.1 parent 8e6ab58 commit 1290c94
1 file changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | | - | |
| 330 | + | |
326 | 331 | | |
327 | 332 | | |
328 | 333 | | |
| |||
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
359 | 368 | | |
| 369 | + | |
360 | 370 | | |
361 | 371 | | |
362 | 372 | | |
| |||
395 | 405 | | |
396 | 406 | | |
397 | 407 | | |
| 408 | + | |
398 | 409 | | |
399 | 410 | | |
400 | 411 | | |
401 | 412 | | |
402 | 413 | | |
403 | | - | |
| 414 | + | |
404 | 415 | | |
405 | 416 | | |
406 | 417 | | |
407 | | - | |
| 418 | + | |
408 | 419 | | |
409 | 420 | | |
410 | 421 | | |
| |||
417 | 428 | | |
418 | 429 | | |
419 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
420 | 438 | | |
421 | 439 | | |
422 | 440 | | |
| |||
462 | 480 | | |
463 | 481 | | |
464 | 482 | | |
465 | | - | |
| 483 | + | |
466 | 484 | | |
467 | 485 | | |
468 | 486 | | |
| |||
0 commit comments