fix marker popup sometimes not showing on tablet. fixes #335.