{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/615","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/615/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/615/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/615","id":108922715,"number":615,"title":"Изменение стиля блока из JS при возникновении события","user":{"login":"Maximario","id":14587230,"avatar_url":"https://avatars.githubusercontent.com/u/14587230?v=3","gravatar_id":"","url":"https://api.github.com/users/Maximario","html_url":"https://github.com/Maximario","followers_url":"https://api.github.com/users/Maximario/followers","following_url":"https://api.github.com/users/Maximario/following{/other_user}","gists_url":"https://api.github.com/users/Maximario/gists{/gist_id}","starred_url":"https://api.github.com/users/Maximario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maximario/subscriptions","organizations_url":"https://api.github.com/users/Maximario/orgs","repos_url":"https://api.github.com/users/Maximario/repos","events_url":"https://api.github.com/users/Maximario/events{/privacy}","received_events_url":"https://api.github.com/users/Maximario/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/bem-core","name":"bem-core","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/css","name":"css","color":"c7def8"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/i-bem","name":"i-bem","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/js","name":"js","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-29T17:55:09Z","updated_at":"2015-09-30T11:24:58Z","closed_at":null,"body":"Друзья, возник вот такой вопрос. Как при возникновении события добраться до стилей блока, на котором это событие возникло, и изменить какой-нибудь отдельный параметр.\r\n\r\nЗадача - хочу сделать DIV с горизонтальной прокруткой по скроллингу мыши. Для галереи картинок.\r\nЯ сделал блок с overflow: hidden. В него вложил длинный блок из картинок. Теперь хочу по событию scroll менять параметр left для блока с картинками.\r\nПодписка на события вроде понятна, но в описании библиотеки jquery в bem-core события scroll нет. Чую, что в BEM есть нюансы в реализации такой функциональности.\r\n\r\nВ общем, подскажите пожалуйста, в какую сторону копать )"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/144366051","html_url":"https://github.com/bem/bem-forum-content-ru/issues/615#issuecomment-144366051","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/615","id":144366051,"user":{"login":"Maximario","id":14587230,"avatar_url":"https://avatars.githubusercontent.com/u/14587230?v=3","gravatar_id":"","url":"https://api.github.com/users/Maximario","html_url":"https://github.com/Maximario","followers_url":"https://api.github.com/users/Maximario/followers","following_url":"https://api.github.com/users/Maximario/following{/other_user}","gists_url":"https://api.github.com/users/Maximario/gists{/gist_id}","starred_url":"https://api.github.com/users/Maximario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maximario/subscriptions","organizations_url":"https://api.github.com/users/Maximario/orgs","repos_url":"https://api.github.com/users/Maximario/repos","events_url":"https://api.github.com/users/Maximario/events{/privacy}","received_events_url":"https://api.github.com/users/Maximario/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T11:24:58Z","updated_at":"2015-09-30T11:24:58Z","body":"О! Благодарю )\r\nЯ взял события mousewheel (все кроме firefox) и DOMMouseScroll (для firefox).\r\nТеперь хочу получить направление прокрутки. Нашел, что это передается в свойствах wheelDelta и detail, соответственно.\r\n\r\nНе подскажите, как их получить?"}}