Issues with dragscroll, Linux Ubuntu, and Electron?
alice-em opened this issue · 1 comments
alice-em commented
So, running Electron 1.3.3 on Ubuntu, dragscroll fails to register while it works just fine on OSX. A very strange occurrence, admittedly, since it works fine with Chrome on Ubuntu (Electron is Chromium based). My code is as follows...
<div class="mainWindow dragscroll" id="viewer">
<div id="innerWindow">
<img id="viewImgOne" draggable="false"/>
<img id="viewImgTwo" draggable="false"/>
<div id="bgLoader" class="hidden"></div>
<div id="loader" class="loader hidden">Loading...</div>
</div>
</div>
.mainWindow {
width: 100%;
margin-top: 56px;
overflow: auto;
img {
float: left;
width: 50%;
}
}
Images load into the two image elements, and the innerWindow is resized accordingly based on image heights. Any suggestions?
alice-em commented
I gave #innerWindow
a height by default in JS. Seems to work now. Closing.