U
    OÖýf3  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é   )ÚInteraction)Ú
WheelInputc                       s>   e Zd Zdedœ‡ fdd„Zdedœdd„Zdd
d„Z‡  ZS )ÚWheelActionsN)Úsourcec                    s   |st dƒ}tƒ  |¡ d S )NÚwheel)r   ÚsuperÚ__init__)Úselfr   ©Ú	__class__© úS/tmp/pip-unpacked-wheel-ds5t_0qj/selenium/webdriver/common/actions/wheel_actions.pyr      s    zWheelActions.__init__é    )Údurationc                 C   s   | j  |¡ | S ©N)r   Zcreate_pause)r	   r   r   r   r   Úpause   s    zWheelActions.pauseÚviewportc                 C   s   | j  ||||||¡ | S r   )r   Zcreate_scroll)r	   ÚxÚyZdelta_xZdelta_yr   Úoriginr   r   r   Úscroll   s    zWheelActions.scroll)N)r   )r   r   r   r   r   r   )	Ú__name__Ú
__module__Ú__qualname__r   r   Úfloatr   r   Ú__classcell__r   r   r
   r   r      s   r   N)Zinteractionr   Zwheel_inputr   r   r   r   r   r   Ú<module>   s   