|
@@ -1912,10 +1912,15 @@ int la_ScrollPanel(laGeneralUiExtraData*ex, laPanel*p, laEvent* e){
|
|
ret= 1;
|
|
ret= 1;
|
|
}
|
|
}
|
|
if(e->type==LA_M_MOUSE_UP){ ex->TargetIndexVali=0; }
|
|
if(e->type==LA_M_MOUSE_UP){ ex->TargetIndexVali=0; }
|
|
- if (e->type & LA_KEY_MOUSE_SCROLL || (e->type==LA_M_MOUSE_DOWN) || (e->type&LA_KEY_PANNING)){
|
|
|
|
- laUiItem *pui = 0; laListHandle levels={0}; int dir;
|
|
|
|
- if (e->type & LA_STATE_DOWN) dir=1;
|
|
|
|
- elif (e->type & LA_STATE_UP) dir=-1;
|
|
|
|
|
|
+ if (e->type & LA_KEY_MOUSE_SCROLL || (e->type==LA_M_MOUSE_DOWN) || (e->key&LA_KEY_PANNING)){
|
|
|
|
+ laUiItem *pui = 0; laListHandle levels={0}; int dir=0;
|
|
|
|
+ if(e->key&LA_KEY_PANNING){
|
|
|
|
+ if (e->key&LA_KEY_ARRDOWN) dir=1;
|
|
|
|
+ elif (e->key&LA_KEY_ARRUP) dir=-1;
|
|
|
|
+ }else{
|
|
|
|
+ if (e->type & LA_STATE_DOWN) dir=1;
|
|
|
|
+ elif (e->type & LA_STATE_UP) dir=-1;
|
|
|
|
+ }
|
|
laUiList *duil = la_DetectUiListRecursiveDeep(p->MenuRefer?p->MenuRefer:&p->UI, e->x, e->y, 10000, &pui, 0, 0, 0, 0, &levels);
|
|
laUiList *duil = la_DetectUiListRecursiveDeep(p->MenuRefer?p->MenuRefer:&p->UI, e->x, e->y, 10000, &pui, 0, 0, 0, 0, &levels);
|
|
laUiListRecord* lip=levels.pLast; laUiList* uuil=lip->uil; laUiItem* upui=lip->Item.pPrev?((laUiListRecord*)lip->Item.pPrev)->pui:0; int ran=0;
|
|
laUiListRecord* lip=levels.pLast; laUiList* uuil=lip->uil; laUiItem* upui=lip->Item.pPrev?((laUiListRecord*)lip->Item.pPrev)->pui:0; int ran=0;
|
|
if(e->SpecialKeyBit == LA_KEY_CTRL){
|
|
if(e->SpecialKeyBit == LA_KEY_CTRL){
|