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

Overlapping selector with nested layer elements #4

Open
rafasashi opened this issue Sep 14, 2016 · 1 comment
Open

Overlapping selector with nested layer elements #4

rafasashi opened this issue Sep 14, 2016 · 1 comment

Comments

@rafasashi
Copy link

I have a #main layer element containing nested elements.

On mouse over the editor select all the stacked elements. Therefore #main is selected almost all the time.

Is it possible to select the first element in front? Perhaps using z-index?

@rafasashi
Copy link
Author

The solution is to use stopPropagation(); on click here:

https://github.com/rafasashi/live-css-editor/blob/release/2015/source/livecsseditor/livecsseditor-2.0.js#L390

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

No branches or pull requests

1 participant