List<ScopedListeners> scopedListenersList = eventDispatcher.typedScopedListeners.get(mapEvent.getType());
for (ScopedListeners scopedListeners : scopedListenersList) {
if (scopedListeners.isInScope(mapEvent)) {
for (MapEventListener listener : scopedListeners.listeners) {
if (listener instanceof UnfoldingMap) {
UnfoldingMap listeningMap = (UnfoldingMap) listener;
if (map.getId().equals(listeningMap.getId())) {
if (mapEvent.getSubType().equals(PanMapEvent.PAN_BY)) {
panByListened = 1;
}
if (mapEvent.getSubType().equals(PanMapEvent.PAN_TO)) {