diff options
-rw-r--r-- | apps/gui/skin_engine/skin_touchsupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 337d3ef5f7..dbc561500a 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c | |||
@@ -111,8 +111,8 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, | |||
111 | SKINOFFSETTOPTR(skin_buffer, r->bar); | 111 | SKINOFFSETTOPTR(skin_buffer, r->bar); |
112 | if(r->width > r->height) | 112 | if(r->width > r->height) |
113 | *edge_offset = vx*100/r->width; | 113 | *edge_offset = vx*100/r->width; |
114 | else | 114 | else /* vertical bars are bottom-up by default */ |
115 | *edge_offset = vy*100/r->height; | 115 | *edge_offset = 100 - vy*100/r->height; |
116 | if (r->reverse_bar || (bar && bar->invert_fill_direction)) | 116 | if (r->reverse_bar || (bar && bar->invert_fill_direction)) |
117 | *edge_offset = 100 - *edge_offset; | 117 | *edge_offset = 100 - *edge_offset; |
118 | } | 118 | } |