Comments (4)
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.
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.
@bertrandg , you're the man! Thanks
from angular-split.
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)
- Support for angular 16? HOT 2
- The ARIA role attribute value for the gutter should be separator, not slider
- Angular-split doesn't work on mobile Ios-Android from Version 16.0.0 (Solved with this workaround) HOT 1
- Buttons added either side of gutter for maximizing panes HOT 1
- aria-valuenow set incorrectly when only the second pane is sized HOT 2
- Incorrect Tabbing Order Due to Gutter Placement in Split Areas HOT 1
- Update to v17 HOT 1
- angular-split has a new maintainer! (was: Sunsetting angular-split) HOT 4
- Integrating 'All Contributors' Bot for Enhanced Contributor Recognition
- Adding a Code of Conduct for Community Standards
- Implementing a Simple Contribution Guide
- Switching from TSLint to ESLint HOT 1
- Optimizing CI Pipeline: Comprehensive Build, Lint, Test, and Automated Release Workflow
- Adding Commitlint for Efficient and Straightforward Commit Strategy
- Update README to Include Detailed Installation Steps and Usage Instructions
- Transition to Angular Standalone Components in Favor of Angular Modules HOT 3
- Proposal for Migration to Angular CLI Multi-Project Workspace
- Gutter is not using transitions
- v17.2.0 not on npmjs HOT 1
- Input to control `tabindex` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-split.