Adjustments to sample viewer
Fixed regression in v3 where click events weren't fired on elements with nested structures. Closes #1583.