FIX: Selecting text was weird with the latest Chrome hack

This commit is contained in:
Robin Ward 2016-10-31 12:38:47 -04:00
parent 70782dcc0b
commit 782b062baa

View File

@ -8,6 +8,9 @@ export default {
withPluginApi('0.1', api => {
api.decorateCooked($elem => {
const iframes = $('.lazyYT', $elem);
if (iframes.length === 0) { return; }
// We use this because watching videos fullscreen in Chrome was super buggy
// otherwise. Thanks to arrendek from q23 for the technique.
$elem.iframeTracker({ blurCallback: () => {