Update panFromEdge to an enum type REPanDirection to allow panFromEdge &...

Update the panFromEdge to an enum type, which can allow REPanDirectionFromEdge & REPanDirectionFromEverywhere. By REPanDirectionFromEverywhere, we can pan the side menus from the centre part of the content view.