I would like to know if possible and how to pass the mouse / scroll event (scroll headerthrough user attempts) from to container.
I have the following situations:
+------------+ +------------+|
| header | | header ||
+------------+ +------------+|
| || | ||
| || | ||
| container || | container ||
| || | ||
| || | ||
+------------+ +------------+|
situation 1 situation 2
Situations
Situation 2 is a “traditional” setting in which you can scroll the entire page. When your cursor hovers over the title (although it may be fixed), the scrolling attempt is passed along with the / html body. Since the container overflows the body / html, the container will move / scroll if the user turns his wheel. Since the title is corrected, it will remain in the same position.
1 - . , . , , , .
1
a jsfiddle 1
a jsfiddle 2
2
fiddle, , , . - :)
: (index):69 Uncaught InvalidStateError: Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.
( )
3
, "Other Solution 2". . , - :)
, , , :
- , scrollTop. , . jsFidle , . , scrollTop , "". , "" , , ! mousewheel