planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

Can't use the scroll in Attribute editing dialog #346

Closed SrNetoChan closed 7 years ago

SrNetoChan commented 7 years ago

When the layer you are editing the attributes has many fields, you need to scroll the list of fields. But, scrolling with the mouse wheel Zooms the map instead, and trying to drag the scroll bar moves the map.

anim

Besides the dialog has an "Add" button, although in this context an "update" or "save" button would be more meaningful.

bartvde commented 7 years ago

yes I've also seen this

bartvde commented 7 years ago

this has to do with using stopEvent: false in the overlay

bartvde commented 7 years ago

but with stopEvent true the buttons cannot be pressed

bartvde commented 7 years ago

Related discussion here: http://stackoverflow.com/questions/35454014/clicks-on-reactjs-components-not-firing-on-an-openlayers-overlay

bartvde commented 7 years ago

Also see: https://github.com/openlayers/openlayers/issues/4400

bartvde commented 7 years ago

I can't see any other way than go back to stopEvent: true with the custom onClick handling we had before

bartvde commented 7 years ago

Fixed with https://github.com/boundlessgeo/sdk/pull/497

bartvde commented 7 years ago

Had to revert that PR due to other issues, need to see if I can solve this one in another way

bartvde commented 7 years ago

Will be fixed with: https://github.com/boundlessgeo/sdk/pull/501