Coder Social home page Coder Social logo

Comments (6)

Lochemage avatar Lochemage commented on September 1, 2024

@arpanmukherjee1

iFrames steal mouse input such as mouse drag events from reaching wcDocker, without the drag events, if you try to move a panel and dock it somewhere over the iFrame it causes problems. The solution was to cover up the iFrame with some element that blocks the iFrame from stealing mouse focus.

However, the wcIFrameFocus element should always be set to display: none except in very specific situations where I need to have mouse input. I see that yours seems to be stuck on display: block mode. Does clicking in that iFrame not cause the focus element to hide itself again?

Unfortunately, I've tried a number of actions but I can't seem to reproduce this, could you list more specifically what actions you took to get this?

from wcdocker.

arpanmukherjee1 avatar arpanmukherjee1 commented on September 1, 2024

Ah, I get why the wcIFrameFocus is required.

To reproduce the issue: In your demo site

  1. close all panes except tutorial panel and control panel
  2. add another tutorial panel
  3. make it floating and then dock it on the right (or any other) side of the existing panel.

I tried the steps and reproduced the bug.

I tried to debug the code and __updateFrame() is reporting the panel as unfocused, focus is false.
ref iframe.js line# 260. And yes you are correct, clicking the IFrame does not hide the focus panel.

from wcdocker.

Lochemage avatar Lochemage commented on September 1, 2024

@arpanmukherjee1

Thank you for the detailed instructions, I am able to reproduce this bug now.

I will have some time later tonight to look into it, I'll keep you updated!

from wcdocker.

arpanmukherjee1 avatar arpanmukherjee1 commented on September 1, 2024

@Lochemage
Welcome. Sounds good to me, thanks.

from wcdocker.

Lochemage avatar Lochemage commented on September 1, 2024

@arpanmukherjee1

Try it out now, I believe I have made it better than before!

from wcdocker.

arpanmukherjee1 avatar arpanmukherjee1 commented on September 1, 2024

@Lochemage
It's working as expected. Thanks

from wcdocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.