1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00
phorge-phorge/webroot/rsrc/js/application/diffusion/behavior-jump-to.js

16 lines
341 B
JavaScript
Raw Normal View History

/**
* @provides javelin-behavior-diffusion-jump-to
* @requires javelin-behavior
* javelin-vector
* javelin-dom
*/
JX.behavior('diffusion-jump-to', function(config) {
setTimeout(function() {
var pos = JX.Vector.getPosWithScroll(JX.$(config.target));
JX.DOM.scrollToPosition(0, pos.y - 100);
}, 0);
});