getEventPos() now takes canvas padding into account. Misc fixes to zGladwrap.getClosestSegment()
getEventPos() now takes canvas padding into account.
Misc fixes to zGladwrap.getClosestSegment()

keithng/zed,keithng/zed