如何在 snap-content 元素中使用 angular-snap.js 创建修复 btn

How can create fix btn with angular-snap.js in snap-content ellement

如何在 snap-content 元素中创建固定位置 例如

... { position: fixed; top: 5rem; right: 0; }
<button class="..." snap-toggle="right">Toggle Right</button> 

in this example

并且滚动页面时按钮的位置没有变化

临时解决方案添加此代码 jquery

$('#ScrollElemntID').scroll(function () {
    var $win = $('#ScrollElemntID');
    $('.btnFix').css('top', $win.scrollTop());
});