} window.getSelection().removeAllRanges(); to the slide containing the youtube video (put it somewhere below or above so it doesn't overlap with your video/web object rectangle). Verify the location of the