Git Product home page Git Product logo

Comments (4)

bertrandg avatar bertrandg commented on May 12, 2024 5

Hi @DHasi ,
Thanks to reporting, i've experiment what you describe.

Sadly, I don't see any easy fix to solve this, it comes from the mousemove event listener on document which is not triggered when mouse over the iframe:
https://github.com/bertrandg/angular-split/blob/master/src/split.component.ts#L274

But i've write a hack to bypass the behavior. The idea is to cover split-area with transparent div when dragging gutters to keep mousemove on document firing.

Here it is: http://plnkr.co/edit/VSQPQ6?p=preview

<split direction="horizontal" (dragStart)="showIframeHider = true" (dragEnd)="showIframeHider = false">
  <split-area [size]="30">
      <p>Lorem ipsum dolor sit amet...</p>
  </split-area>
  <split-area [size]="70">
      <div>
        <iframe src="https://bertrandg.github.io/angular-split" frameborder="0" width="100%" height="100%"></iframe>
        <div [hidden]="showIframeHider === false" class="hack-iframe-hider"></div>
      </div>
  </split-area>
</split>
split-area > div {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hack-iframe-hider {
  background: rgba(0, 0, 0, .2);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

from angular-split.

dominikhasiwar avatar dominikhasiwar commented on May 12, 2024

That did the trick - thank you!

I think you can solve this problem by implementing a kind of "drag-preview". The splitter of the kendo ui framework from telerik does something similar: http://demos.telerik.com/kendo-ui/splitter/index

from angular-split.

vlodko avatar vlodko commented on May 12, 2024

@bertrandg , you're the man! Thanks

from angular-split.

deeg avatar deeg commented on May 12, 2024

Just noting that I accomplished the same thing by using 'pointer-events: none' around the iframe when in a dragging state.

Makes it so you do not need an extra dom element as proposed by @bertrandg

from angular-split.

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.