[shotwell: 4/5] use 15 as min scrubbing distance
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell: 4/5] use 15 as min scrubbing distance
- Date: Mon, 9 Jul 2018 20:20:23 +0000 (UTC)
commit cd78ba0816f835633ca9bffa6fead91d01a42cf8
Author: Carsten Csiky (csicar) <carsten csiky gmail com>
Date: Fri Jul 6 08:50:07 2018 +0200
use 15 as min scrubbing distance
src/events/EventDirectoryItem.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/events/EventDirectoryItem.vala b/src/events/EventDirectoryItem.vala
index 4922375a..5b177fbb 100644
--- a/src/events/EventDirectoryItem.vala
+++ b/src/events/EventDirectoryItem.vala
@@ -172,7 +172,7 @@ class EventDirectoryItem : CheckerboardItem {
}
public override void handle_mouse_motion(int x, int y, int height, int width) {
- int steppedX = x - (x % 30);
+ int steppedX = x - (x % 15);
int element_index = (int) Math.round( (double) steppedX / width * (event.get_media_count() - 1) );
unowned MediaSource media = event.get_media().to_array()[element_index];
set_paul_lynde(media);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]