#NEWLINE# def on_mouse_scroll( self , event ) : #NEWLINE# #INDENT# dy = event . pixelDelta ( ) . y ( ) #NEWLINE# if ( dy < self . SCROLL_NEGATIVE ) : #NEWLINE# #INDENT# self . _presenter . load_posts ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( dy > self . SCROLL_POSITIVE ) : #NEWLINE# #INDENT# self . _presenter . sync_posts ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . _presenter . reset_unseen_posts ( )