fix #1178 multiple issues when dragging within a parent container that is scrollable

Yes, the original issue was that getGeometry returned a null value, then once this was fixed, the other issues presented themselves.