prevent event propagation when setting markers