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, SKINOFFSETTOPTR(skin_buffer, r->bar); if(r->width > r->height) *edge_offset = vx*100/r->width; - else - *edge_offset = vy*100/r->height; + else /* vertical bars are bottom-up by default */ + *edge_offset = 100 - vy*100/r->height; if (r->reverse_bar || (bar && bar->invert_fill_direction)) *edge_offset = 100 - *edge_offset; }