08.11.2016, 13:05
Add this to Custom JavaScript and set Additional classes to bell-press for each element that requires this functionality. This will work both in Touch and User mode visualization.
Code:
$(function(){
var el, els;
if ($('html').hasClass('touch')) {
els = $('.bell-press .control');
}
else if ($('body').hasClass('usermode')) {
els = $('.bell-press');
}
else {
return;
}
els
.off('vclick')
.on('vmousedown.bpress', function() {
el = $(this).closest('.bell-press');
grp.write(el.data('object'), true);
})
.on('dragstart', function() {
return false;
});
$('body').on('vmouseup.bpress vmousecancel.bpress', function() {
if (el) {
grp.write(el.data('object'), false);
el = null;
}
});
});