I was trying to make a slider, everything was going alright until i put a input
inside of it.
If i click inside the input and then drag to the right, all my content will move with the scroll, even if he is set overflow
as hidden
.
i made a demo with the problem.
here is the source:
<div class="modal-content">
<div class="modal-content-slide">
<div class="center-slide-content">
<div class="right-content">
<div class="inside-content">
<p>
Click inside the input and drag to the right
</p>
<p class="morrow-url-input-wrapper">
<input type="text" />
</p>
</div>
</div>
</div>
</div>
and css:
.modal-content {
background-color: #ccc;
position: relative;
width: 550px;
border-radius: 5px;
margin: 20px;
height: 240px;
overflow: hidden;
}
.modal-content-slide {
position: absolute;
width: 2100px;
}
.right-content {
background-color: #515151;
width: 220px;
height: 180px;
padding: 10px;
border-radius: 5px;
box-shadow: #285b76 0 1px 1px;
}
what i'm missing, how can i prevent this ?