Commit a4ebf3a2 authored by claes's avatar claes

Scale adjustment in eventhandler added

parent 55bbf673
......@@ -285,9 +285,10 @@ int GrowMenu::local_event_handler( glow_eEvent event, double x, double y)
ll_y <= y && y <= ur_y)
{
int item;
double vscale = trf.vertical_scale(0);
//cout << "Event handler: Hit in menu" << endl;
item = int((y - ll.y) / ( item_height / ctx->zoom_factor_y));
item = int((y - ll.y) / ( item_height / vscale / ctx->zoom_factor_y));
if ( item > item_cnt - 1)
item = item_cnt - 1;
if ( item < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment