@ -855,6 +855,9 @@ TABS.osd.initialize = function (callback) {
ctx . drawImage ( img , i * 12 , 0 ) ;
ctx . drawImage ( img , i * 12 , 0 ) ;
}
}
field . preview _img . src = canvas . toDataURL ( 'image/png' ) ;
field . preview _img . src = canvas . toDataURL ( 'image/png' ) ;
// Required for NW.js - Otherwise the <img /> will
// consume drag/drop events.
field . preview _img . style . pointerEvents = 'none' ;
}
}
var centerishPosition = 225 ;
var centerishPosition = 225 ;
@ -902,6 +905,9 @@ TABS.osd.initialize = function (callback) {
. on ( 'drop' , OSD . GUI . preview . onDrop )
. on ( 'drop' , OSD . GUI . preview . onDrop )
. data ( 'field' , field )
. data ( 'field' , field )
. data ( 'position' , i ) ;
. data ( 'position' , i ) ;
// Required for NW.js - Otherwise the <img /> will
// consume drag/drop events.
$img . find ( 'img' ) . css ( 'pointer-events' , 'none' ) ;
if ( field && field . positionable ) {
if ( field && field . positionable ) {
$img
$img
. addClass ( 'field-' + field . index )
. addClass ( 'field-' + field . index )