Fix #10297: compare tree event time with only mouse press time.