in the file filter-effects-dialog.cpp, I'm trying to get auto scrolling to work horizontally in the connections box of the filter editor dialog (for https://bugs.launchpad.net/inkscape/+bug/1062134 ). it already works vertically, and you can test this by dragging a connector down (you might want to apply the patch found there after youve verified how this works on your clean branch). however, im trying to get the scrolling to work horizontally too, but it seems that e->x is returning strange values.. strange in that it seems that when i scroll the box, it uses the coordinates of the primitiveList object.. not the actual visible area (ie, the far left edge is not 0 after i scroll to the right).. so to make it scroll i have to drag past where the left corner would be. so to give you an ascii explanation:
__________ | | | : [ ] | | | __________
imagine the [ ] is the primitives box, where the scrolling should occur and connections dragging is done. the : is where i have to drag to for the autoscrolling to kick in while dragging a connector if the area is scrolled a bit to the right.. ie, the : represents where the name of the effect would be if it was visible. hope that makes some sense at all
the dragging code is in this function:
FilterEffectsDialog::PrimitiveList::on_motion_notify_event(GdkEventMotion* e)
i can post a patch of what i have so far if necessary
thanks in advance
-- View this message in context: http://inkscape.13.n6.nabble.com/GdkEventMotion-returning-wrong-unexpected-x... Sent from the Inkscape - Dev mailing list archive at Nabble.com.