mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 18:43:05 +08:00
Merge pull request #21331 from alalek:issue_21289
This commit is contained in:
commit
f11ab4c569
@ -1824,6 +1824,10 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da
|
|||||||
}
|
}
|
||||||
else if( event->type == GDK_SCROLL )
|
else if( event->type == GDK_SCROLL )
|
||||||
{
|
{
|
||||||
|
GdkEventScroll* event_scroll = (GdkEventScroll*)event;
|
||||||
|
pt32f.x = cvFloor(event_scroll->x);
|
||||||
|
pt32f.y = cvFloor(event_scroll->y);
|
||||||
|
|
||||||
#if defined(GTK_VERSION3_4)
|
#if defined(GTK_VERSION3_4)
|
||||||
// NOTE: in current implementation doesn't possible to put into callback function delta_x and delta_y separately
|
// NOTE: in current implementation doesn't possible to put into callback function delta_x and delta_y separately
|
||||||
double delta = (event->scroll.delta_x + event->scroll.delta_y);
|
double delta = (event->scroll.delta_x + event->scroll.delta_y);
|
||||||
|
Loading…
Reference in New Issue
Block a user