mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Fix horizontal scrolling oddness
Giving the hidden text area a fixed position was confusing webkit and making scroll behavior really odd. Using position: absolute and setting the z-index so it's behind the editor seems to make scrolling behave more normally.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
background: #333;
|
||||
color: white;
|
||||
overflow-y: scroll;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.editor pre {
|
||||
@@ -31,9 +32,11 @@
|
||||
}
|
||||
|
||||
.editor .hidden-input {
|
||||
position: fixed;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.editor .selection {
|
||||
|
||||
Reference in New Issue
Block a user