Bug Fixed: pinned icon now working
This commit is contained in:
1 parent
57df515f60
commit
5ce0bdb4a6
4 files changed
+24
No files matched your search
@@ -20,6 +20,7 @@ function newFloatingObject () {
|
||||
rawRadius: 0, // This is the radius of this floating object without zoom.
|
||||
targetRadius: 0, // This is the target radius of the floating object with zoom applied. It should be animated until reaching this value.
|
||||
isPinned: false,
|
||||
getPinStatus: getPinStatus,
|
||||
nearbyFloatingObjects: [],
|
||||
setPosition: setPosition,
|
||||
pinToggle: pinToggle,
|
||||
@@ -100,6 +101,10 @@ function newFloatingObject () {
|
||||
}
|
||||
}
|
||||
|
||||
function getPinStatus () {
|
||||
return thisObject.isPinned
|
||||
}
|
||||
|
||||
function pinToggle () {
|
||||
if (thisObject.isPinned !== true) {
|
||||
thisObject.isPinned = true
|
||||
|
||||
Reference in new issue
Block a user