JSFiddle - React, Tailwind, and code Playground
HTML
<div class="outer">
<div class="inner">
Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence. Hello, this is a long sentence.
</div>
</div>
CSS
.outer {
height: 1500px;
}
.inner {
height: 100px;
width: 100px;
overflow: auto;
}
JavaScript
$('.inner').bind('mousewheel', function(e) {
if(e.originalEvent.wheelDelta < 0 &&
($(this).scrollTop() + $(this).height()) >= this.scrollHeight) return false;
});