Fix: Decision to open or close panel when pan gesture ended.