Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iframe cann't scroll after dragging #119

Open
byte0 opened this issue Jan 4, 2018 · 3 comments
Open

iframe cann't scroll after dragging #119

byte0 opened this issue Jan 4, 2018 · 3 comments

Comments

@byte0
Copy link

byte0 commented Jan 4, 2018

iframe cann't scroll after dragging

@osasseville
Copy link

I can reproduce on chrome, but not on firefox.

@dmalan
Copy link

dmalan commented Jul 14, 2018

Afraid we're seeing the same on Safari 11.1.1 on macOS 10.13.5. Curiously, manually resizing the browser window itself, even by just one pixel, or even opening or closing Safari's Developer Tools seems to re-enable scrolling for the iframe. Perhaps a Safari bug that's somehow being triggered by resizing a split view?

After much trial and error, it seems that registering an onDragEnd handler of

onDragEnd: function() {
    $('iframe').css('display', 'none').height();
    $('iframe').css('display', 'block');
}

seems to re-enable scrolling without any manual interventions, perhaps by programmatically inducing a redraw. Inspired by https://stackoverflow.com/a/14382251/5156190.

@nathancahill
Copy link
Owner

Do you have minimum code that replicates this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants