Prevent default behavior when we click on arrows in LayerManager

Fix #1656