riku
2024-11-07 5036880fc037e5d112206b93a729f60be12bf8ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function getPopupStyles(zIndex, distanceTop, placement) {
  var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
  if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) {
    zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;'
  }
  return zIndexStyle;
}
 
function onContentTouchMove (e) {
  if (e.target.dataset.prevention) {
    return false;
  };
}
 
module.exports = {
  getPopupStyles: getPopupStyles,
  onContentTouchMove: onContentTouchMove
};