Fixed the bug with area transitions (I just forgot to check the type of mouseEvent)